Skip navigation links

Oracle Access Manager Extensibility Java API Reference
11g Release 1 (11.1.1.5)

E22473-01


oracle.security.am.plugin
Interface PluginContext

All Known Subinterfaces:
AuthenticationContext

public interface PluginContext

Context used by the plug-ins to retrieve the attributes and set the attributes to be used by other plug-ins that gets executed in the flow.

Since:
OAM 11.1.1.5.0
Version:
OAM 11.1.1.5.0

Method Summary
 void addErrorCode(ErrorCode errorCode)
          Adds an error code to the list of errors.
 void addException(java.lang.Exception exception)
          Adds an exception to the list.
 void addResponse(PluginResponse response)
          Add a response to the context.
 java.util.List<PluginResponse> getAllResponses()
          returns all the responses configured.
 java.lang.String getClientIPAddress()
          gets the client IP address.
 ClientProfile getClientProfile()
          returns the ClientProfile object that contains the client specific attributes.
 ErrorCode getErrorCode()
          returns the error code for the last error that occured during the execution.
 java.util.List<java.lang.Exception> getExceptionList()
          Returns the list of exceptions encountered during the processing.
 IdentityStoreContext getIdentityStoreContext()
          returns the identity store context.
 java.lang.String getImplType()
          Returns the implementation type of the plug-in context implementation
 java.lang.Object getObjectAttribute(java.lang.String atrName)
          This method returns the object attribute specified by the attribute name parameter.
 java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
          Returns the Object attribute map.
 PluginResponse getResponse(PluginAttributeContextType type, java.lang.String name)
          returns the attributes for the target context and the name.
 java.util.List<PluginResponse> getResponses(PluginAttributeContextType type)
          returns all the attributes for the target context.
 AMSession getSession()
          returns the OAM session object.
 java.lang.String getStringAttribute(java.lang.String atrName)
          This method gives the String attribute specified by the attribute name parameter.
 java.util.Map<java.lang.String,java.lang.String> getStringMap()
          Retuns the string attribute map.
 GenericTransportContext getTransportContext()
          Transport context encapsulate the transport related handling in the request object.
 void setObjectAttribute(java.lang.String attrName, java.lang.Object attrValue)
          This method sets a Object attribute specified by the attribute name parameter and value.
 void setStringAttribute(java.lang.String attrName, java.lang.String attrValue)
          This method sets a String attribute specified by the attribute name parameter and value.

 

Method Detail

getObjectAttribute

java.lang.Object getObjectAttribute(java.lang.String atrName)
This 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.
Parameters:
atrName - String attribute name value.
Returns:
the object attribute

getStringAttribute

java.lang.String getStringAttribute(java.lang.String atrName)
This 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.
Parameters:
atrName - String attribute name value.
Returns:
the string attribute

setStringAttribute

void setStringAttribute(java.lang.String attrName,
                        java.lang.String attrValue)
This 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.
Parameters:
attrName - the attr name
attrValue - the attr value

setObjectAttribute

void setObjectAttribute(java.lang.String attrName,
                        java.lang.Object attrValue)
This 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.
Parameters:
attrName - the attr name
attrValue - the attr value

getClientIPAddress

java.lang.String getClientIPAddress()
gets the client IP address. For HTTP protocol it will be the IP address of the browser.
Returns:
IPAddress a String value;

getTransportContext

GenericTransportContext getTransportContext()
Transport context encapsulate the transport related handling in the request object.
Returns:
a object.

getExceptionList

java.util.List<java.lang.Exception> getExceptionList()
Returns the list of exceptions encountered during the processing.
Returns:
the exception list

addException

void addException(java.lang.Exception exception)
Adds an exception to the list.
Parameters:
exception - the exception

getObjectMap

java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
Returns the Object attribute map.
Returns:
the object map

getStringMap

java.util.Map<java.lang.String,java.lang.String> getStringMap()
Retuns the string attribute map.
Returns:

addErrorCode

void addErrorCode(ErrorCode errorCode)
Adds 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.
Parameters:
errorCode - the error code

getErrorCode

ErrorCode getErrorCode()
returns the error code for the last error that occured during the execution.
Returns:
the error code

addResponse

void addResponse(PluginResponse response)
Add a response to the context. PluginResponse object need to be defined to set the context to which the attribute should be added.
Parameters:
response - PluginResponse object

getAllResponses

java.util.List<PluginResponse> getAllResponses()
returns all the responses configured.
Returns:
PluginResponse object

getClientProfile

ClientProfile getClientProfile()
returns the ClientProfile object that contains the client specific attributes.
Returns:
the client profile

getIdentityStoreContext

IdentityStoreContext getIdentityStoreContext()
returns the identity store context.
Returns:
the identity store context

getSession

AMSession getSession()
returns the OAM session object. OAMSession can be used to access session attributes.
Returns:
OAMSession object.

getResponses

java.util.List<PluginResponse> getResponses(PluginAttributeContextType type)
returns all the attributes for the target context.
Parameters:
type -
Returns:
List<PluginResponse>

getResponse

PluginResponse getResponse(PluginAttributeContextType type,
                           java.lang.String name)
returns the attributes for the target context and the name.
Parameters:
type -
Returns:
PluginResponse

getImplType

java.lang.String getImplType()
Returns the implementation type of the plug-in context implementation
Returns:

Skip navigation links

Oracle Access Manager Extensibility Java API Reference
11g Release 1 (11.1.1.5)

E22473-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.