Interface SecurityScope
-
- All Known Implementing Classes:
FlowableAuthenticationSecurityScope,FlowablePrincipalSecurityScope
public interface SecurityScopeSecurity scope that can be used for passing the needed security scope accessibility to the Java API.- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Set<String>getGroupKeys()The group keys for which the security scope is meant fordefault SecurityScopegetImpersonationScope()Return theSecurityScopefor the user doing the impersonation.StringgetTenantId()The tenant id for which the security scope is meant forStringgetUserDefinitionKey()The user definition key for which the security scope is meant forStringgetUserId()The id of the user for which the security scope is meant forbooleanhasAuthority(String authority)Check if the security scope has the given authority.
-
-
-
Method Detail
-
getUserId
String getUserId()
The id of the user for which the security scope is meant for- Returns:
- the user id
-
getGroupKeys
Set<String> getGroupKeys()
The group keys for which the security scope is meant for- Returns:
- the group keys
-
getTenantId
String getTenantId()
The tenant id for which the security scope is meant for- Returns:
- the tenant id
-
getUserDefinitionKey
String getUserDefinitionKey()
The user definition key for which the security scope is meant for- Returns:
- the user definition key
-
hasAuthority
boolean hasAuthority(String authority)
Check if the security scope has the given authority.- Parameters:
authority- the authority to be checked- Returns:
trueif the security scope has the given authority,falseotherwise
-
getImpersonationScope
default SecurityScope getImpersonationScope()
Return theSecurityScopefor the user doing the impersonation. If no impersonation is happenning then returnnull- Returns:
- the security scope of the user doing the impersonation or
null
-
-