Interface TokenPrincipal
- All Superinterfaces:
Principal
A
Principal backed by a token representing the entity requesting permissions.- Author:
- Pedro Igor
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetName()The name of the entity represented by the token.The token in its raw format.default org.keycloak.representations.AccessTokengetToken()TheAccessTokenrepresentation ofgetRawToken().
-
Method Details
-
getRawToken
String getRawToken()The token in its raw format.- Returns:
- the token in its raw format.
-
getToken
default org.keycloak.representations.AccessToken getToken()TheAccessTokenrepresentation ofgetRawToken().- Returns:
- the access token representation
-
getName
The name of the entity represented by the token.
-