public class AuthData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
appServer
The appserver name associated with the authenticated session.
|
private java.lang.String |
identity
The identity of the authenticated session, in "processId/userId" form.
|
| Constructor and Description |
|---|
AuthData(boolean isProcess,
java.lang.String subjectId,
java.lang.String appServer)
Saves the appserver name and builds a new
identity based on the subject's ID and
type. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAppServer()
Get the
appServer name. |
java.lang.String |
getIdentity()
Get the
identity. |
boolean |
isAppServer()
Check if this has authenticated as an appserver.
|
private final java.lang.String appServer
private final java.lang.String identity
public AuthData(boolean isProcess,
java.lang.String subjectId,
java.lang.String appServer)
identity based on the subject's ID and
type.isProcess - true if it authenticated as a process.subjectId - The subject's ID, a process or user name.appServer - The appserver's name, may be null.public java.lang.String getIdentity()
identity.public java.lang.String getAppServer()
appServer name.public boolean isAppServer()
true if appServer is not-null and not-empty.