public interface Principal
In case of basic authentication this will directly represent a user, in case of client credentials this is the client.
| Modifier and Type | Method and Description |
|---|---|
Set<Authorization> |
getAuthorizations()
The authorizations this Principal has.
|
String |
getId()
The identifier for this Principal.
|
default boolean |
hasAuthorization(Authorization authorization)
Checks whether this Principal entity has the given Authorization.
|
@Nonnull Set<Authorization> getAuthorizations()
Set with the authentications.default boolean hasAuthorization(@Nonnull Authorization authorization)
authorization - The Authorization to check.true if the Principal has the given Authorization; false else.Copyright © 2020 SAP SE. All rights reserved.