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 |
|---|---|
io.vavr.control.Try<PrincipalAttribute> |
getAttribute(String attributeName)
Returns the attribute specified by the given name, wrapped in a
Try. |
Set<Authorization> |
getAuthorizations()
The authorizations this Principal has.
|
String |
getPrincipalId()
The identifier for this Principal.
|
@Nonnull String getPrincipalId()
@Nonnull Set<Authorization> getAuthorizations()
Set with the authentications.@Nonnull io.vavr.control.Try<PrincipalAttribute> getAttribute(@Nonnull String attributeName)
Try.attributeName - The name of the attribute to get.Copyright © 2019 SAP SE. All rights reserved.