Class FlowableAuthenticationSecurityScope
java.lang.Object
com.flowable.core.spring.security.FlowableAuthenticationSecurityScope
- All Implemented Interfaces:
SecurityScope
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractAuthoritiesStartingWith(String prefix) The group keys for which the security scope is meant forReturn theSecurityScopefor the user doing the impersonation.The tenant id for which the security scope is meant forThe user definition key for which the security scope is meant forThe id of the user for which the security scope is meant forbooleanhasAuthority(String authority) Check if the security scope has the given authority.
-
Field Details
-
authentication
-
-
Constructor Details
-
FlowableAuthenticationSecurityScope
-
-
Method Details
-
getUserId
Description copied from interface:SecurityScopeThe id of the user for which the security scope is meant for- Specified by:
getUserIdin interfaceSecurityScope- Returns:
- the user id
-
getGroupKeys
Description copied from interface:SecurityScopeThe group keys for which the security scope is meant for- Specified by:
getGroupKeysin interfaceSecurityScope- Returns:
- the group keys
-
getTenantId
Description copied from interface:SecurityScopeThe tenant id for which the security scope is meant for- Specified by:
getTenantIdin interfaceSecurityScope- Returns:
- the tenant id
-
getUserDefinitionKey
Description copied from interface:SecurityScopeThe user definition key for which the security scope is meant for- Specified by:
getUserDefinitionKeyin interfaceSecurityScope- Returns:
- the user definition key
-
hasAuthority
Description copied from interface:SecurityScopeCheck if the security scope has the given authority.- Specified by:
hasAuthorityin interfaceSecurityScope- Parameters:
authority- the authority to be checked- Returns:
trueif the security scope has the given authority,falseotherwise
-
getImpersonationScope
Description copied from interface:SecurityScopeReturn theSecurityScopefor the user doing the impersonation. If no impersonation is happenning then returnnull- Specified by:
getImpersonationScopein interfaceSecurityScope- Returns:
- the security scope of the user doing the impersonation or
null
-
extractAuthoritiesStartingWith
-