public abstract class AbstractAuthnContext extends AbstractPluginContext implements AuthenticationContext
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
clientIPAddress |
protected ClientProfile |
clientProfile |
protected Credential |
credential |
protected ExecutionAction |
executionAction |
protected IdentityStoreContext |
idStoreContext |
protected java.util.HashMap<java.lang.String,java.lang.Object> |
pluginStateAttribute |
protected AMSession |
session |
protected java.lang.String |
startingStep |
protected GenericTransportContext |
transportContext |
amSession, exceptionList, objectMap, pluginResponses, stringMapKEY_TAG| Constructor and Description |
|---|
AbstractAuthnContext() |
AbstractAuthnContext(GenericTransportContext ctx,
IdentityStoreContext idStore,
Credential credential) |
AbstractAuthnContext(java.lang.String clientIPAddress,
ClientProfile clientProfile,
AMSession session,
PluginTransportContext transportContext,
Credential credential) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteStateAttribute(java.lang.String attributeName)
Deletes the plugin state attribute that was set earlier.
|
ExecutionAction |
getAction()
Returns the execution action that has been set in the authentication context
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getAllStateAttributes()
Returns all the plugin state attributes and their values
|
java.lang.String |
getImplType()
returns the implementation type of the plugin.
|
java.lang.String |
getStartingStep()
Returns the starting step that has been set in the authentication context
|
java.lang.Object |
getStateAttribute(java.lang.String attributeName)
Returns the pluginStateAttribute value or null if the state is not available
|
void |
setAction(ExecutionAction executionAction)
Sets the execution action in the authentication context
|
void |
setClientIPAddress(java.lang.String clientIPAddress) |
void |
setClientProfile(ClientProfile clientProfile) |
void |
setCredential(Credential credential) |
void |
setIdentityStoreContext(IdentityStoreContext idStoreContext) |
void |
setSession(AMSession session) |
void |
setStartingStep(java.lang.String startingStep)
Sets the starting step in the authentication context
|
void |
setStateAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets the plugin state that can be used across plugins
|
void |
setTransportContext(PluginTransportContext transportContext) |
addErrorCode, addException, addResponse, getAllResponses, getClientIPAddress, getClientProfile, getErrorCode, getExceptionList, getIdentityStoreContext, getObjectAttribute, getObjectMap, getResponse, getResponses, getSession, getStringAttribute, getStringMap, getTransportContext, removeResponse, removeResponse, setObjectAttribute, setStringAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthenticationClass, getAuthnModuleConfig, getAuthnScheme, getCredential, getResourceURL, getSubject, setAuthenticationClass, setAuthnModuleConfig, setSubjectaddErrorCode, addException, addResponse, getAllResponses, getClientIPAddress, getClientProfile, getErrorCode, getExceptionList, getIdentityStoreContext, getObjectAttribute, getObjectMap, getResponse, getResponses, getSession, getStringAttribute, getStringMap, getTransportContext, removeResponse, removeResponse, setObjectAttribute, setStringAttributefromString, getKeyName, getObjName, setKeyName, toStringFormprotected java.lang.String clientIPAddress
protected ClientProfile clientProfile
protected AMSession session
protected GenericTransportContext transportContext
protected Credential credential
protected IdentityStoreContext idStoreContext
protected java.lang.String startingStep
protected ExecutionAction executionAction
protected java.util.HashMap<java.lang.String,java.lang.Object> pluginStateAttribute
public AbstractAuthnContext()
public AbstractAuthnContext(GenericTransportContext ctx, IdentityStoreContext idStore, Credential credential)
ctx - idStore - credential - public AbstractAuthnContext(java.lang.String clientIPAddress,
ClientProfile clientProfile,
AMSession session,
PluginTransportContext transportContext,
Credential credential)
clientIPAddress - clientProfile - session - transportContext - credential - public void setClientIPAddress(java.lang.String clientIPAddress)
clientIPAddress - public void setClientProfile(ClientProfile clientProfile)
clientProfile - public void setSession(AMSession session)
session - public void setTransportContext(PluginTransportContext transportContext)
transportContext - public void setCredential(Credential credential)
credential - public void setIdentityStoreContext(IdentityStoreContext idStoreContext)
idStoreContext - public java.lang.String getImplType()
getImplType in interface PluginContextpublic java.lang.String getStartingStep()
getStartingStep in interface PluginContextpublic void setStartingStep(java.lang.String startingStep)
setStartingStep in interface PluginContextstartingStep - public ExecutionAction getAction()
getAction in interface PluginContextpublic void setAction(ExecutionAction executionAction)
setAction in interface PluginContextExecutionAction - public void setStateAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
PluginContextsetStateAttribute in interface PluginContextattributeName - : attributeName represents the name of the plugin statepublic java.lang.Object getStateAttribute(java.lang.String attributeName)
PluginContextgetStateAttribute in interface PluginContextattributeName - : the name of the plugin state attributepublic void deleteStateAttribute(java.lang.String attributeName)
PluginContextdeleteStateAttribute in interface PluginContextpublic java.util.HashMap<java.lang.String,java.lang.Object> getAllStateAttributes()
PluginContextgetAllStateAttributes in interface PluginContext