Top Description Fields Constructors Methods
jakarta.security.enterprise

public Class CallerPrincipal

extends Object
implements Principal, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.security.Principal
Imports
java.io.Serializable, java.security.Principal

Principal that represents the caller principal associated with the invocation being processed by the container (e.g. the current HTTP request).

Field Summary

Modifier and TypeField and Description
private final String
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The name of the caller
getName
()

Implements java.security.Principal.getName.

The name of the caller
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CallerPrincipalback to summary
public CallerPrincipal(String name)

Method Detail

getNameback to summary
public String getName()

Implements java.security.Principal.getName.

The name of the caller

Returns:String

The name of the caller

Annotations
@Override