Interface SecurityToken

All Superinterfaces:
SecurityActor, UserIdRelated
All Known Implementing Classes:
AuthenticatedToken

public interface SecurityToken extends SecurityActor, UserIdRelated
A token based actor.
  • Method Details

    • getUserId

      Long getUserId()
      Get a unique user ID that owns the token.
      Specified by:
      getUserId in interface UserIdRelated
      Returns:
      the user ID
    • getToken

      String getToken()
      Get the token value.
      Returns:
      the token
    • getTokenType

      SecurityTokenType getTokenType()
      Get the type of token.
      Returns:
      the token type
    • getPolicy

      SecurityPolicy getPolicy()
      Get an optional security policy.
      Returns:
      optional security policy