Interface Principal


public interface Principal
Who an AuthenticationMechanism proved the caller to be. Each mechanism has its own type; SecurityIdentity.principal(Class) reads it back.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    hasAudience(String audience)
    Whether the credential was issued for audience (RFC 8707).
    default boolean
    Whether the credential grants scope.
    default String
    Where signing out sends the browser; null for the application root.
    Unique within the mechanism that produced it.
  • Method Details

    • name

      String name()
      Unique within the mechanism that produced it.
    • hasScope

      default boolean hasScope(String scope)
      Whether the credential grants scope. One that carries no scopes grants every scope.
    • hasAudience

      default boolean hasAudience(String audience)
      Whether the credential was issued for audience (RFC 8707). One bound to no audience was.
    • logoutUrl

      default String logoutUrl()
      Where signing out sends the browser; null for the application root.