Class FlowableAuthenticationSecurityScope
java.lang.Object
com.flowable.core.spring.security.FlowableAuthenticationSecurityScope
- All Implemented Interfaces:
SecurityScope
public class FlowableAuthenticationSecurityScope extends java.lang.Object implements SecurityScope
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.security.core.Authenticationauthentication -
Constructor Summary
Constructors Constructor Description FlowableAuthenticationSecurityScope(org.springframework.security.core.Authentication authentication) -
Method Summary
Modifier and Type Method Description protected java.util.stream.Stream<java.lang.String>extractAuthoritiesStartingWith(java.lang.String prefix)java.util.Set<java.lang.String>getGroupKeys()The group keys for which the security scope is meant forjava.lang.StringgetTenantId()The tenant id for which the security scope is meant forjava.lang.StringgetUserDefinitionKey()The user definition key for which the security scope is meant forjava.lang.StringgetUserId()The id of the user for which the security scope is meant forbooleanhasAuthority(java.lang.String authority)Check if the security scope has the given authority.
-
Field Details
-
authentication
protected final org.springframework.security.core.Authentication authentication
-
-
Constructor Details
-
FlowableAuthenticationSecurityScope
public FlowableAuthenticationSecurityScope(org.springframework.security.core.Authentication authentication)
-
-
Method Details
-
getUserId
public java.lang.String 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
public java.util.Set<java.lang.String> 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
public java.lang.String 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
public java.lang.String 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
public boolean hasAuthority(java.lang.String authority)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
-
extractAuthoritiesStartingWith
protected java.util.stream.Stream<java.lang.String> extractAuthoritiesStartingWith(java.lang.String prefix)
-