Class CallerPrincipal

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

public class CallerPrincipal extends Object implements Principal
Principal that represents the caller principal associated with the invocation being processed by the container (e.g. the current HTTP request).
  • 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