public class FlowableAuthenticationSecurityScope extends Object implements SecurityScope
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.security.core.Authentication |
authentication |
| Constructor and Description |
|---|
FlowableAuthenticationSecurityScope(org.springframework.security.core.Authentication authentication) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream<String> |
extractAuthoritiesStartingWith(String prefix) |
Set<String> |
getGroupIds()
The group ids for which the security scope is meant for
|
String |
getTenantId()
The tenant id 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 org.springframework.security.core.Authentication authentication
public FlowableAuthenticationSecurityScope(org.springframework.security.core.Authentication authentication)
public String getUserId()
SecurityScopegetUserId in interface SecurityScopepublic Set<String> getGroupIds()
SecurityScopegetGroupIds in interface SecurityScopepublic String getTenantId()
SecurityScopegetTenantId 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 otherwiseCopyright © 2021 Flowable. All rights reserved.