public class FlowableAuthenticationSecurityScope extends Object implements SecurityScope
| Modifier and Type | Field and Description |
|---|---|
protected Authentication |
authentication |
| Constructor and Description |
|---|
FlowableAuthenticationSecurityScope(Authentication authentication) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream<String> |
extractAuthoritiesStartingWith(String prefix) |
Set<String> |
getGroupKeys()
The group keys for which the security scope is meant for
|
SecurityScope |
getImpersonationScope()
Return the
SecurityScope for the user doing the impersonation. |
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.
|
protected final Authentication authentication
public FlowableAuthenticationSecurityScope(Authentication authentication)
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 otherwisepublic SecurityScope getImpersonationScope()
SecurityScopeSecurityScope for the user doing the impersonation.
If no impersonation is happenning then return nullgetImpersonationScope in interface SecurityScopenull