Package jakarta.security.enterprise
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
-
Constructor Details
-
CallerPrincipal
public CallerPrincipal(java.lang.String name)
-
-
Method Details
-
getName
public java.lang.String getName()The name of the caller- Specified by:
getName
in interfacejava.security.Principal
- Returns:
- The name of the caller
-