Package org.flowable.ui.common.security
Class FlowableAuthenticationSecurityScope
- java.lang.Object
-
- org.flowable.ui.common.security.FlowableAuthenticationSecurityScope
-
- All Implemented Interfaces:
SecurityScope
public class FlowableAuthenticationSecurityScope extends 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stream<String>extractAuthoritiesStartingWith(String prefix)Set<String>getGroupIds()The group ids for which the security scope is meant forStringgetTenantId()The tenant id 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
public 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
-
getGroupIds
public Set<String> getGroupIds()
Description copied from interface:SecurityScopeThe group ids for which the security scope is meant for- Specified by:
getGroupIdsin interfaceSecurityScope- Returns:
- the group keys
-
getTenantId
public 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
-
hasAuthority
public boolean hasAuthority(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
-
-