Package oracle.security.am.plugin.impl
Class AuthnContext
java.lang.Object
oracle.security.am.plugin.impl.AbstractPluginContext
oracle.security.am.plugin.impl.AbstractAuthnContext
oracle.security.am.plugin.impl.AuthnContext
- All Implemented Interfaces:
AuthenticationContext
,PluginAttribute
,PluginContext
-
Field Summary
Fields inherited from interface oracle.security.am.plugin.PluginAttribute
KEY_TAG
-
Constructor Summary
ConstructorsConstructorDescriptionAuthnContext<wbr>(Subject subject)
AuthnContext<wbr>(AuthenticationContext authnContext, GenericTransportContext pCtx, IdentityStoreContext idStore, Credential credential)
AuthnContext<wbr>(GenericTransportContext pCtx, IdentityStoreContext idStore, Credential credential)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fromString<wbr>(String token)
oracle.security.am.common.policy.runtime.AccessConstants.AUTH_CLASS
Returns the authentication scheme that initiated the authentication process.gets the client IP address.returns theClientProfile
object that contains the client specific attributes.Get credential for the authentication.returns the identity store context.returns the OAM session object.Retrieves aSubject
from the authentication context.Transport context encapsulate the transport related handling in the request object.void
setAuthenticationClass<wbr>(oracle.security.am.common.policy.runtime.AccessConstants.AUTH_CLASS authClass)
void
setAuthnModuleConfig<wbr>(AuthnModuleConfig config)
void
setAuthnScheme<wbr>(PluginAuthnScheme authnScheme)
sets the authentication schemevoid
setKeyName<wbr>(String keyName)
void
setResourceURL<wbr>(String resourceURL)
void
setSubject<wbr>(Subject subject)
sets a subject to the authentication context.toStringForm<wbr>(boolean isLogStr)
Methods inherited from class oracle.security.am.plugin.impl.AbstractAuthnContext
deleteStateAttribute, getAction, getAllStateAttributes, getHttpProxyHost, getHttpProxyPort, getImplType, getStartingStep, getStateAttribute, setAction, setClientIPAddress, setClientProfile, setCredential, setHttpProxyHost, setHttpProxyPort, setIdentityStoreContext, setSession, setStartingStep, setStateAttribute, setTransportContext
Methods inherited from class oracle.security.am.plugin.impl.AbstractPluginContext
addErrorCode, addException, addResponse, getAllResponses, getErrorCode, getExceptionList, getObjectAttribute, getObjectMap, getResponse, getResponses, getStringAttribute, getStringMap, removeResponse, removeResponse, setObjectAttribute, setStringAttribute
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface oracle.security.am.plugin.PluginContext
addErrorCode, addException, addResponse, getAllResponses, getErrorCode, getExceptionList, getObjectAttribute, getObjectMap, getResponse, getResponses, getStringAttribute, getStringMap, removeResponse, removeResponse, setObjectAttribute, setStringAttribute
-
Constructor Details
-
AuthnContext
public AuthnContext() -
AuthnContext
-
AuthnContext
public AuthnContext<wbr>(GenericTransportContext pCtx, IdentityStoreContext idStore, Credential credential) -
AuthnContext
public AuthnContext<wbr>(AuthenticationContext authnContext, GenericTransportContext pCtx, IdentityStoreContext idStore, Credential credential)
-
-
Method Details
-
getCredential
Description copied from interface:AuthenticationContext
Get credential for the authentication.- Returns:
- a {@link Credential) object.
-
getSubject
Description copied from interface:AuthenticationContext
Retrieves aSubject
from the authentication context. If the subject is not available the method will return null.- Returns:
- the subject
-
setSubject
Description copied from interface:AuthenticationContext
sets a subject to the authentication context.- Parameters:
subject
-Subject
-
getClientIPAddress
Description copied from interface:PluginContext
gets the client IP address. For HTTP protocol it will be the IP address of the browser.- Specified by:
getClientIPAddress
in interfacePluginContext
- Overrides:
getClientIPAddress
in classAbstractPluginContext
- Returns:
- IPAddress a String value;
-
getClientProfile
Description copied from interface:PluginContext
returns theClientProfile
object that contains the client specific attributes.- Specified by:
getClientProfile
in interfacePluginContext
- Overrides:
getClientProfile
in classAbstractPluginContext
- Returns:
- the client profile
-
getSession
Description copied from interface:PluginContext
returns the OAM session object. OAMSession can be used to access session attributes.- Specified by:
getSession
in interfacePluginContext
- Overrides:
getSession
in classAbstractPluginContext
- Returns:
OAMSession
object.
-
getTransportContext
Description copied from interface:PluginContext
Transport context encapsulate the transport related handling in the request object.- Specified by:
getTransportContext
in interfacePluginContext
- Overrides:
getTransportContext
in classAbstractPluginContext
- Returns:
- a object.
-
getIdentityStoreContext
Description copied from interface:PluginContext
returns the identity store context.- Specified by:
getIdentityStoreContext
in interfacePluginContext
- Overrides:
getIdentityStoreContext
in classAbstractPluginContext
- Returns:
- the identity store context
-
getAuthnModuleConfig
- Returns:
-
setAuthnModuleConfig
-
getAuthenticationClass
public oracle.security.am.common.policy.runtime.AccessConstants.AUTH_CLASS getAuthenticationClass() -
setAuthenticationClass
public void setAuthenticationClass<wbr>(oracle.security.am.common.policy.runtime.AccessConstants.AUTH_CLASS authClass) -
toStringForm
-
toStringForm
-
fromString
-
getKeyName
-
setKeyName
-
getObjName
-
setResourceURL
-
getResourceURL
-
getAuthnScheme
Description copied from interface:AuthenticationContext
Returns the authentication scheme that initiated the authentication process. Configuration parameters for authetnication scheme will be available throughPluginAuthnScheme
object. -
setAuthnScheme
sets the authentication scheme- Parameters:
authnScheme
-
-