public class AuthnContext extends AbstractAuthnContext
Modifier and Type | Field and Description |
---|---|
protected AuthnModuleConfig |
authnModuleConfig |
protected static java.lang.String |
CREDENTIAL_TAG |
protected static java.util.logging.Logger |
LOGGER |
protected static java.lang.String |
OBJ_ID |
protected static java.lang.String |
OBJECT_MAP_PREFIX_TAG |
protected static java.lang.String |
PLUGIN_RESPONSES_LIST_TAG |
protected java.lang.String |
resourceURL |
protected static java.lang.String |
STARTING_STEP_PREFIX_TAG |
protected static java.lang.String |
STATE_MAP_PREFIX_TAG |
protected static java.lang.String |
STRING_MAP_PREFIX_TAG |
clientIPAddress, clientProfile, credential, executionAction, idStoreContext, pluginStateAttribute, session, startingStep, transportContext
amSession, exceptionList, objectMap, pluginResponses, stringMap
KEY_TAG
Constructor and Description |
---|
AuthnContext() |
AuthnContext(AuthenticationContext authnContext,
GenericTransportContext pCtx,
IdentityStoreContext idStore,
Credential credential) |
AuthnContext(GenericTransportContext pCtx,
IdentityStoreContext idStore,
Credential credential) |
AuthnContext(javax.security.auth.Subject subject) |
Modifier and Type | Method and Description |
---|---|
void |
fromString(java.lang.String token) |
AccessConstants.AUTH_CLASS |
getAuthenticationClass() |
AuthnModuleConfig |
getAuthnModuleConfig() |
PluginAuthnScheme |
getAuthnScheme()
Returns the authentication scheme that initiated the
authentication process.
|
java.lang.String |
getClientIPAddress()
gets the client IP address.
|
ClientProfile |
getClientProfile()
returns the
ClientProfile object that contains
the client specific attributes. |
Credential |
getCredential()
Get credential for the authentication.
|
IdentityStoreContext |
getIdentityStoreContext()
returns the identity store context.
|
java.lang.String |
getKeyName() |
java.lang.String |
getObjName() |
java.lang.String |
getResourceURL() |
AMSession |
getSession()
returns the OAM session object.
|
javax.security.auth.Subject |
getSubject()
Retrieves a
Subject from the authentication context. |
GenericTransportContext |
getTransportContext()
Transport context encapsulate the transport related handling in the
request object.
|
void |
setAuthenticationClass(AccessConstants.AUTH_CLASS authClass) |
void |
setAuthnModuleConfig(AuthnModuleConfig config) |
void |
setAuthnScheme(PluginAuthnScheme authnScheme)
sets the authentication scheme
|
void |
setKeyName(java.lang.String keyName) |
void |
setResourceURL(java.lang.String resourceURL) |
void |
setSubject(javax.security.auth.Subject subject)
sets a subject to the authentication context.
|
java.lang.String |
toStringForm() |
java.lang.String |
toStringForm(boolean isLogStr) |
deleteStateAttribute, getAction, getAllStateAttributes, getImplType, getStartingStep, getStateAttribute, setAction, setClientIPAddress, setClientProfile, setCredential, setIdentityStoreContext, setSession, setStartingStep, setStateAttribute, setTransportContext
addErrorCode, addException, addResponse, getAllResponses, getErrorCode, getExceptionList, getObjectAttribute, getObjectMap, getResponse, getResponses, getStringAttribute, getStringMap, removeResponse, removeResponse, setObjectAttribute, setStringAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addErrorCode, addException, addResponse, getAllResponses, getErrorCode, getExceptionList, getObjectAttribute, getObjectMap, getResponse, getResponses, getStringAttribute, getStringMap, removeResponse, removeResponse, setObjectAttribute, setStringAttribute
protected static java.util.logging.Logger LOGGER
protected AuthnModuleConfig authnModuleConfig
protected static final java.lang.String OBJ_ID
protected static java.lang.String STRING_MAP_PREFIX_TAG
protected static java.lang.String OBJECT_MAP_PREFIX_TAG
protected static java.lang.String PLUGIN_RESPONSES_LIST_TAG
protected static java.lang.String STARTING_STEP_PREFIX_TAG
protected static java.lang.String CREDENTIAL_TAG
protected static java.lang.String STATE_MAP_PREFIX_TAG
protected java.lang.String resourceURL
public AuthnContext()
public AuthnContext(javax.security.auth.Subject subject)
public AuthnContext(GenericTransportContext pCtx, IdentityStoreContext idStore, Credential credential)
public AuthnContext(AuthenticationContext authnContext, GenericTransportContext pCtx, IdentityStoreContext idStore, Credential credential)
public Credential getCredential()
AuthenticationContext
public javax.security.auth.Subject getSubject()
AuthenticationContext
Subject
from the authentication context.
If the subject is not available the method will return null.public void setSubject(javax.security.auth.Subject subject)
AuthenticationContext
subject
- Subject
public java.lang.String getClientIPAddress()
PluginContext
getClientIPAddress
in interface PluginContext
getClientIPAddress
in class AbstractPluginContext
public ClientProfile getClientProfile()
PluginContext
ClientProfile
object that contains
the client specific attributes.getClientProfile
in interface PluginContext
getClientProfile
in class AbstractPluginContext
public AMSession getSession()
PluginContext
getSession
in interface PluginContext
getSession
in class AbstractPluginContext
OAMSession
object.public GenericTransportContext getTransportContext()
PluginContext
getTransportContext
in interface PluginContext
getTransportContext
in class AbstractPluginContext
public IdentityStoreContext getIdentityStoreContext()
PluginContext
getIdentityStoreContext
in interface PluginContext
getIdentityStoreContext
in class AbstractPluginContext
public AuthnModuleConfig getAuthnModuleConfig()
public void setAuthnModuleConfig(AuthnModuleConfig config)
public AccessConstants.AUTH_CLASS getAuthenticationClass()
public void setAuthenticationClass(AccessConstants.AUTH_CLASS authClass)
public java.lang.String toStringForm()
public java.lang.String toStringForm(boolean isLogStr)
public void fromString(java.lang.String token)
public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
public java.lang.String getObjName()
public void setResourceURL(java.lang.String resourceURL)
public java.lang.String getResourceURL()
public PluginAuthnScheme getAuthnScheme()
AuthenticationContext
PluginAuthnScheme
object.public void setAuthnScheme(PluginAuthnScheme authnScheme)
authnScheme
-