Constructor and Description |
---|
ScpNeoPrincipal(User delegate) |
Modifier and Type | Method and Description |
---|---|
Set<Authorization> |
getAuthorizations()
The authorizations this Principal has.
|
String |
getId()
The identifier for this Principal.
|
boolean |
hasAuthorization(Authorization authorization)
Checks whether this Principal entity has the given Authorization.
|
@Nonnull public String getId()
Principal
@Nonnull public Set<Authorization> getAuthorizations()
Principal
getAuthorizations
in interface Principal
Set
with the authentications.public boolean hasAuthorization(@Nonnull Authorization authorization)
Principal
hasAuthorization
in interface Principal
authorization
- The Authorization to check.true
if the Principal has the given Authorization; false
else.Copyright © 2019 SAP SE. All rights reserved.