public interface SecurityScope
Modifier and Type | Method and Description |
---|---|
Set<String> |
getGroupKeys()
The group keys for which the security scope is meant for
|
default 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.
|
String getUserId()
Set<String> getGroupKeys()
String getTenantId()
String getUserDefinitionKey()
boolean hasAuthority(String authority)
authority
- the authority to be checkedtrue
if the security scope has the given authority, false
otherwisedefault SecurityScope getImpersonationScope()
SecurityScope
for the user doing the impersonation.
If no impersonation is happenning then return null
null