Interface TokenOwnerPrincipal
-
- All Superinterfaces:
java.security.Principal
@NotExtensible public interface TokenOwnerPrincipal extends java.security.Principal
A principal implementation for a user represented by an access token.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of this principal.com.fasterxml.jackson.databind.node.ObjectNode
getResource()
Gets the token owner's attributes.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this principal.- Specified by:
getName
in interfacejava.security.Principal
- Returns:
- The name of this principal.
-
getResource
com.fasterxml.jackson.databind.node.ObjectNode getResource()
Gets the token owner's attributes.- Returns:
- The token owner's attributes as a JSON object. May be
null
.
-
-