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 TypeMethodDescriptionvoidfromString<wbr>(String token)oracle.security.am.common.policy.runtime.AccessConstants.AUTH_CLASSReturns the authentication scheme that initiated the authentication process.gets the client IP address.returns theClientProfileobject that contains the client specific attributes.Get credential for the authentication.returns the identity store context.returns the OAM session object.Retrieves aSubjectfrom the authentication context.Transport context encapsulate the transport related handling in the request object.voidsetAuthenticationClass<wbr>(oracle.security.am.common.policy.runtime.AccessConstants.AUTH_CLASS authClass)voidsetAuthnModuleConfig<wbr>(AuthnModuleConfig config)voidsetAuthnScheme<wbr>(PluginAuthnScheme authnScheme)sets the authentication schemevoidsetKeyName<wbr>(String keyName)voidsetResourceURL<wbr>(String resourceURL)voidsetSubject<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, setTransportContextMethods inherited from class oracle.security.am.plugin.impl.AbstractPluginContext
addErrorCode, addException, addResponse, getAllResponses, getErrorCode, getExceptionList, getObjectAttribute, getObjectMap, getResponse, getResponses, getStringAttribute, getStringMap, removeResponse, removeResponse, setObjectAttribute, setStringAttributeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AuthenticationContextGet credential for the authentication.- Returns:
- a {@link Credential) object.
-
getSubject
Description copied from interface:AuthenticationContextRetrieves aSubjectfrom the authentication context. If the subject is not available the method will return null.- Returns:
- the subject
-
setSubject
Description copied from interface:AuthenticationContextsets a subject to the authentication context.- Parameters:
subject-Subject
-
getClientIPAddress
Description copied from interface:PluginContextgets the client IP address. For HTTP protocol it will be the IP address of the browser.- Specified by:
getClientIPAddressin interfacePluginContext- Overrides:
getClientIPAddressin classAbstractPluginContext- Returns:
- IPAddress a String value;
-
getClientProfile
Description copied from interface:PluginContextreturns theClientProfileobject that contains the client specific attributes.- Specified by:
getClientProfilein interfacePluginContext- Overrides:
getClientProfilein classAbstractPluginContext- Returns:
- the client profile
-
getSession
Description copied from interface:PluginContextreturns the OAM session object. OAMSession can be used to access session attributes.- Specified by:
getSessionin interfacePluginContext- Overrides:
getSessionin classAbstractPluginContext- Returns:
OAMSessionobject.
-
getTransportContext
Description copied from interface:PluginContextTransport context encapsulate the transport related handling in the request object.- Specified by:
getTransportContextin interfacePluginContext- Overrides:
getTransportContextin classAbstractPluginContext- Returns:
- a object.
-
getIdentityStoreContext
Description copied from interface:PluginContextreturns the identity store context.- Specified by:
getIdentityStoreContextin interfacePluginContext- Overrides:
getIdentityStoreContextin 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:AuthenticationContextReturns the authentication scheme that initiated the authentication process. Configuration parameters for authetnication scheme will be available throughPluginAuthnSchemeobject. -
setAuthnScheme
sets the authentication scheme- Parameters:
authnScheme-
-