serverAuthModule
during its validateRequest processing.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Principal | |
| private Subject |
| Access | Constructor and Description |
|---|---|
| public | CallerPrincipalCallback(Subject
The Subject in which the container will distinguish the
caller identity. s, Principal The Principal that will be distinguished as the caller
principal. This value may be null.
p)The CallbackHandler must use the argument Principal to establish the caller principal associated with the invocation being processed by the container. When the argument Principal is null, the handler must establish the container's representation of the unauthenticated caller principal. The handler may perform principal mapping of non-null argument Principal values, but it must be possible to configure the handler such that it establishes the non-null argument Principal as the caller principal. Create a CallerPrincipalCallback to set the container's representation of the caller principal |
| public | CallerPrincipalCallback(Subject
The Subject in which the container will distinguish the
caller identity. s, String The String value that will be returned when getName() is
called on the principal established as the caller principal or null.
n)The CallbackHandler must use the n argument to establish the caller principal associated with the invocation being processed by the container. When the n argument is null, the handler must establish the container's representation of the unauthenticated caller principal (which may or may not be equal to null, depending on the requirements of the container type ). The handler may perform principal mapping of non-null values of n, but it must be possible to configure the handler such that it establishes the non-null argument value as the value returned when getName is called on the established principal. Create a CallerPrincipalCallback to set the container's representation of the caller principal. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The principal name or null.When the values returned by this method and the getPrincipal methods are null, the handler must establish the container's representation of the unauthenticated caller principal within the Subject. Get the caller principal name. |
| public Principal | Returns: The principal or null.When the values returned by this method and the getName methods are null, the handler must establish the container's representation of the unauthenticated caller principal within the Subject. Get the caller principal. |
| public Subject | Returns: The subject.Get the Subject in which the handler will distinguish the caller principal |
| name | back to summary |
|---|---|
| private String name | |
| principal | back to summary |
|---|---|
| private Principal principal | |
| subject | back to summary |
|---|---|
| private Subject subject | |
| CallerPrincipalCallback | back to summary |
|---|---|
| public CallerPrincipalCallback(Subject s, Principal p) Create a CallerPrincipalCallback to set the container's representation of the caller principal
| |
| CallerPrincipalCallback | back to summary |
|---|---|
| public CallerPrincipalCallback(Subject s, String n) Create a CallerPrincipalCallback to set the container's representation of the caller principal.
| |
| getName | back to summary |
|---|---|
| public String getName() Get the caller principal name.
| |
| getPrincipal | back to summary |
|---|---|
| public Principal getPrincipal() Get the caller principal.
| |
| getSubject | back to summary |
|---|---|
| public Subject getSubject() Get the Subject in which the handler will distinguish the caller principal
| |