Class CallerPrincipal

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

public class CallerPrincipal
extends java.lang.Object
implements java.security.Principal
Principal that represents the caller principal associated with the invocation being processed by the container (e.g. the current HTTP request).
  • Constructor Summary

    Constructors 
    Constructor Description
    CallerPrincipal​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()
    The name of the caller

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.security.Principal

    equals, hashCode, implies, toString
  • Constructor Details

  • Method Details

    • getName

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