Package oracle.security.am.plugin.impl
Class AbstractPluginContext
java.lang.Object
oracle.security.am.plugin.impl.AbstractPluginContext
- All Implemented Interfaces:
PluginAttribute,PluginContext
- Direct Known Subclasses:
AbstractAuthnContext
-
Field Summary
Fields inherited from interface oracle.security.am.plugin.PluginAttribute
KEY_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorCode<wbr>(oracle.security.am.common.utilities.constant.ErrorCode errorCode)Adds an error code to the list of errors.voidaddException<wbr>(Exception exception)Adds an exception to the list.voidaddResponse<wbr>(PluginResponse response)Add a response to the context.returns all the responses configured.gets the client IP address.returns theClientProfileobject that contains the client specific attributes.oracle.security.am.common.utilities.constant.ErrorCodereturns the error code for the last error that occured during the execution.Returns the list of exceptions encountered during the processing.returns the identity store context.getObjectAttribute<wbr>(String atrName)This method returns the object attribute specified by the attribute name parameter.Returns the Object attribute map.getResponse<wbr>(PluginAttributeContextType type, String name)returns the attributes for the target context and the name.getResponses<wbr>(PluginAttributeContextType type)returns all the attributes for the target context.returns the OAM session object.getStringAttribute<wbr>(String atrName)This method gives the String attribute specified by the attribute name parameter.Retuns the string attribute map.Transport context encapsulate the transport related handling in the request object.voidremoveResponse<wbr>(PluginAttributeContextType type)Removes the response of the specified typevoidremoveResponse<wbr>(PluginAttributeContextType type, String name)Removes the response of the specified type and namevoidsetObjectAttribute<wbr>(String attrName, Object attrValue)This method sets a Object attribute specified by the attribute name parameter and value.voidsetStringAttribute<wbr>(String attrName, String attrValue)This method sets a String attribute specified by the attribute name parameter and value.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.security.am.plugin.PluginAttribute
fromString, getKeyName, getObjName, setKeyName, toStringFormMethods inherited from interface oracle.security.am.plugin.PluginContext
deleteStateAttribute, getAction, getAllStateAttributes, getImplType, getStartingStep, getStateAttribute, setAction, setStartingStep, setStateAttribute
-
Constructor Details
-
AbstractPluginContext
public AbstractPluginContext()
-
-
Method Details
-
addErrorCode
public void addErrorCode<wbr>(oracle.security.am.common.utilities.constant.ErrorCode errorCode)Description copied from interface:PluginContextAdds an error code to the list of errors. Error code will be translated to a fixed set of messages that will be displayed to the user if needed.- Specified by:
addErrorCodein interfacePluginContext- Parameters:
errorCode- the error code
-
addException
Description copied from interface:PluginContextAdds an exception to the list.- Specified by:
addExceptionin interfacePluginContext- Parameters:
exception- the exception
-
addResponse
Description copied from interface:PluginContextAdd a response to the context. PluginResponse object need to be defined to set the context to which the attribute should be added.- Specified by:
addResponsein interfacePluginContext- Parameters:
response-PluginResponseobject
-
getAllResponses
Description copied from interface:PluginContextreturns all the responses configured.- Specified by:
getAllResponsesin interfacePluginContext- Returns:
PluginResponseobject
-
getErrorCode
public oracle.security.am.common.utilities.constant.ErrorCode getErrorCode()Description copied from interface:PluginContextreturns the error code for the last error that occured during the execution.- Specified by:
getErrorCodein interfacePluginContext- Returns:
- the error code
-
getExceptionList
Description copied from interface:PluginContextReturns the list of exceptions encountered during the processing.- Specified by:
getExceptionListin interfacePluginContext- Returns:
- the exception list
-
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- Returns:
- IPAddress a String value;
-
getClientProfile
Description copied from interface:PluginContextreturns theClientProfileobject that contains the client specific attributes.- Specified by:
getClientProfilein interfacePluginContext- Returns:
- the client profile
-
getIdentityStoreContext
Description copied from interface:PluginContextreturns the identity store context.- Specified by:
getIdentityStoreContextin interfacePluginContext- Returns:
- the identity store context
-
getObjectAttribute
Description copied from interface:PluginContextThis method returns the object attribute specified by the attribute name parameter. All the data in the plug-in context will be stored in Object Map or String map and the data manipulation and access will be done using the get*Attribute, set*Attribute methods.- Specified by:
getObjectAttributein interfacePluginContext- Parameters:
atrName-Stringattribute name value.- Returns:
- the object attribute
-
getObjectMap
Description copied from interface:PluginContextReturns the Object attribute map.- Specified by:
getObjectMapin interfacePluginContext- Returns:
- the object map
-
getStringAttribute
Description copied from interface:PluginContextThis method gives the String attribute specified by the attribute name parameter. All the data in the plug-in context will be stored in Object Map or String map and the data manipulation and access will be done using the get*Attribute, set*Attribute methods.- Specified by:
getStringAttributein interfacePluginContext- Parameters:
atrName-Stringattribute name value.- Returns:
- the string attribute
-
getStringMap
Description copied from interface:PluginContextRetuns the string attribute map.- Specified by:
getStringMapin interfacePluginContext- Returns:
-
setObjectAttribute
Description copied from interface:PluginContextThis method sets a Object attribute specified by the attribute name parameter and value. All the data in the plug-in context will be stored in Object Map or String map and the data manipulation and access will be done using the get*Attribute, set*Attribute methods.- Specified by:
setObjectAttributein interfacePluginContext- Parameters:
attrName- the attr nameattrValue- the attr value
-
setStringAttribute
Description copied from interface:PluginContextThis method sets a String attribute specified by the attribute name parameter and value. All the data in the plug-in context will be stored in Object Map or String map and the data manipulation and access will be done using the get*Attribute, set*Attribute methods.- Specified by:
setStringAttributein interfacePluginContext- Parameters:
attrName- the attr nameattrValue- the attr value
-
getSession
Description copied from interface:PluginContextreturns the OAM session object. OAMSession can be used to access session attributes.- Specified by:
getSessionin interfacePluginContext- Returns:
OAMSessionobject.
-
getTransportContext
Description copied from interface:PluginContextTransport context encapsulate the transport related handling in the request object.- Specified by:
getTransportContextin interfacePluginContext- Returns:
- a object.
-
getResponses
Description copied from interface:PluginContextreturns all the attributes for the target context.- Specified by:
getResponsesin interfacePluginContext- Returns:
List<PluginResponse>
-
getResponse
Description copied from interface:PluginContextreturns the attributes for the target context and the name.- Specified by:
getResponsein interfacePluginContext- Returns:
PluginResponse
-
removeResponse
Description copied from interface:PluginContextRemoves the response of the specified type- Specified by:
removeResponsein interfacePluginContext
-
removeResponse
Description copied from interface:PluginContextRemoves the response of the specified type and name- Specified by:
removeResponsein interfacePluginContext
-