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, transportContextamSession, exceptionList, objectMap, pluginResponses, stringMapKEY_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, setTransportContextaddErrorCode, addException, addResponse, getAllResponses, getErrorCode, getExceptionList, getObjectAttribute, getObjectMap, getResponse, getResponses, getStringAttribute, getStringMap, removeResponse, removeResponse, setObjectAttribute, setStringAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddErrorCode, addException, addResponse, getAllResponses, getErrorCode, getExceptionList, getObjectAttribute, getObjectMap, getResponse, getResponses, getStringAttribute, getStringMap, removeResponse, removeResponse, setObjectAttribute, setStringAttributeprotected 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()
AuthenticationContextpublic javax.security.auth.Subject getSubject()
AuthenticationContextSubject from the authentication context.
If the subject is not available the method will return null.public void setSubject(javax.security.auth.Subject subject)
AuthenticationContextsubject - Subjectpublic java.lang.String getClientIPAddress()
PluginContextgetClientIPAddress in interface PluginContextgetClientIPAddress in class AbstractPluginContextpublic ClientProfile getClientProfile()
PluginContextClientProfile object that contains
the client specific attributes.getClientProfile in interface PluginContextgetClientProfile in class AbstractPluginContextpublic AMSession getSession()
PluginContextgetSession in interface PluginContextgetSession in class AbstractPluginContextOAMSession object.public GenericTransportContext getTransportContext()
PluginContextgetTransportContext in interface PluginContextgetTransportContext in class AbstractPluginContextpublic IdentityStoreContext getIdentityStoreContext()
PluginContextgetIdentityStoreContext in interface PluginContextgetIdentityStoreContext in class AbstractPluginContextpublic 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()
AuthenticationContextPluginAuthnScheme object.public void setAuthnScheme(PluginAuthnScheme authnScheme)
authnScheme -