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, stringMap
KEY_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, setStringAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthenticationClass, getAuthnModuleConfig, getAuthnScheme, getCredential, getResourceURL, getSubject, setAuthenticationClass, setAuthnModuleConfig, setSubject
addErrorCode, addException, addResponse, getAllResponses, getClientIPAddress, getClientProfile, getErrorCode, getExceptionList, getIdentityStoreContext, getObjectAttribute, getObjectMap, getResponse, getResponses, getSession, getStringAttribute, getStringMap, getTransportContext, removeResponse, removeResponse, setObjectAttribute, setStringAttribute
fromString, getKeyName, getObjName, setKeyName, toStringForm
protected 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 PluginContext
public java.lang.String getStartingStep()
getStartingStep
in interface PluginContext
public void setStartingStep(java.lang.String startingStep)
setStartingStep
in interface PluginContext
startingStep
- public ExecutionAction getAction()
getAction
in interface PluginContext
public void setAction(ExecutionAction executionAction)
setAction
in interface PluginContext
ExecutionAction
- public void setStateAttribute(java.lang.String attributeName, java.lang.Object attributeValue)
PluginContext
setStateAttribute
in interface PluginContext
attributeName
- : attributeName represents the name of the plugin statepublic java.lang.Object getStateAttribute(java.lang.String attributeName)
PluginContext
getStateAttribute
in interface PluginContext
attributeName
- : the name of the plugin state attributepublic void deleteStateAttribute(java.lang.String attributeName)
PluginContext
deleteStateAttribute
in interface PluginContext
public java.util.HashMap<java.lang.String,java.lang.Object> getAllStateAttributes()
PluginContext
getAllStateAttributes
in interface PluginContext