All Known Implementing Classes:
DefaultPrincipal
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Principal
This represents the information available an authenticated entity.

In case of basic authentication this will directly represent a user, in case of client credentials this is the client.

  • Method Summary

    Modifier and Type
    Method
    Description
    The identifier for this Principal.
  • Method Details

    • getPrincipalId

      @Nonnull String getPrincipalId()
      The identifier for this Principal.
      Returns:
      The identifier.