Interface TokenPrincipal

All Superinterfaces:
Principal

public interface TokenPrincipal extends Principal
A Principal backed by a token representing the entity requesting permissions.
Author:
Pedro Igor
  • 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()
      The AccessToken representation of getRawToken().
      Returns:
      the access token representation
    • getName

      default String getName()
      The name of the entity represented by the token.
      Specified by:
      getName in interface Principal
      Returns:
      the name of the principal