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, waitgetImpersonationScopeprotected final Principal principal
public FlowablePrincipalSecurityScope(Principal principal)
public String getUserId()
SecurityScopegetUserId in interface SecurityScopepublic Set<String> getGroupKeys()
SecurityScopegetGroupKeys in interface SecurityScopepublic String getTenantId()
SecurityScopegetTenantId in interface SecurityScopepublic String getUserDefinitionKey()
SecurityScopegetUserDefinitionKey in interface SecurityScopepublic boolean hasAuthority(String authority)
SecurityScopehasAuthority in interface SecurityScopeauthority - the authority to be checkedtrue if the security scope has the given authority, false otherwise