Interface AuthenticatedIdentity

  • All Superinterfaces:
    All Known Implementing Classes:

    public interface AuthenticatedIdentity
    extends Principal
    This interface is implemented by classes that represent the current authenticated identity.

    What current means here is context dependent. In a Jakarta Servlet application this refers to the caller (user) details during a single HTTP request.

    Arjan Tijms
    • Method Detail

      • getCallerPrincipal

        Principal getCallerPrincipal()
        Returns the caller principal, which represents the primary name of the calling entity (aka the "caller") to a server.
        the caller principal, or null if authentication has not (yet) completed successfully.
      • getGroups

        Set<String> getGroups()
        The groups the caller is in.

        If group to role mapping is not active (the default) groups are equal to roles.

        the set of groups the caller is in, never null.