Interface TokenPrincipal
-
- All Superinterfaces:
Principal
public interface TokenPrincipal extends Principal
APrincipalbacked by a token representing the entity requesting permissions.- Author:
- Pedro Igor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetName()The name of the entity represented by the token.StringgetRawToken()The token in its raw format.default org.keycloak.representations.AccessTokengetToken()TheAccessTokenrepresentation ofgetRawToken().
-
-
-
Method Detail
-
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
-
-