Class CallerPrincipal

java.lang.Object
jakarta.security.enterprise.CallerPrincipal
All Implemented Interfaces:
Serializable, Principal

public class CallerPrincipal extends Object implements Principal, Serializable
Principal that represents the caller principal associated with the invocation being processed by the container (e.g. the current HTTP request).
See Also:
  • Constructor Details

    • CallerPrincipal

      public CallerPrincipal(String name)
  • Method Details

    • getName

      public String getName()
      The name of the caller
      Specified by:
      getName in interface Principal
      Returns:
      The name of the caller