public class FlowablePrincipalSecurityScope extends Object implements SecurityScope
Constructor and Description |
---|
FlowablePrincipalSecurityScope(Principal principal) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getGroupKeys()
The group keys for which the security scope is meant for
|
String |
getTenantId()
The tenant id for which the security scope is meant for
|
String |
getUserDefinitionKey()
The user definition key for which the security scope is meant for
|
String |
getUserId()
The id of the user for which the security scope is meant for
|
boolean |
hasAuthority(String authority)
Check if the security scope has the given authority.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getImpersonationScope
protected final Principal principal
public FlowablePrincipalSecurityScope(Principal principal)
public String getUserId()
SecurityScope
getUserId
in interface SecurityScope
public Set<String> getGroupKeys()
SecurityScope
getGroupKeys
in interface SecurityScope
public String getTenantId()
SecurityScope
getTenantId
in interface SecurityScope
public String getUserDefinitionKey()
SecurityScope
getUserDefinitionKey
in interface SecurityScope
public boolean hasAuthority(String authority)
SecurityScope
hasAuthority
in interface SecurityScope
authority
- the authority to be checkedtrue
if the security scope has the given authority, false
otherwise