Skip navigation links

Oracle Fusion Middleware Extensibility Java API Reference for Oracle Access Management Access Manager
11g Release 2 (11.1.2.1.0)

E27137-02


oracle.security.am.plugin.impl
Class UserActionContext

java.lang.Object
  extended by oracle.security.am.plugin.impl.UserActionContext

All Implemented Interfaces:
ActionContext

public class UserActionContext
extends java.lang.Object
implements ActionContext

This is the context that holds the different UserContextData - metadata that needs to be collected from the login page.

Since:
OAM 11.1.1.5.2
Version:
OAM 11.1.2.0.0

Constructor Summary
UserActionContext()
           
UserActionContext(java.lang.String credentialActionCommand)
          Constructor to create user action context with pre defined commands.

 

Method Summary
 void fromString(java.lang.String token)
           
 java.util.List<ContextData> getContextData()
           
 java.lang.String getUserActionCommand()
           
 void setContextData(java.util.List<ContextData> contextData)
           
 void setUserActionCommand(java.lang.String userActionCommand)
          This method can be used to set the user action command directly to the UserActionContext.
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

UserActionContext

public UserActionContext()

UserActionContext

public UserActionContext(java.lang.String credentialActionCommand)
Constructor to create user action context with pre defined commands. supported command is USER_PASSWORD - collect user name and password from the client. the values will be PluginConstants.USERNAME and password will be PluginConstants.PASSWORD
Parameters:
credentialActionCommand -

Method Detail

getContextData

public java.util.List<ContextData> getContextData()
Specified by:
getContextData in interface ActionContext

setContextData

public void setContextData(java.util.List<ContextData> contextData)
Specified by:
setContextData in interface ActionContext

toString

public java.lang.String toString()
Specified by:
toString in interface ActionContext
Overrides:
toString in class java.lang.Object

fromString

public void fromString(java.lang.String token)
Specified by:
fromString in interface ActionContext

getUserActionCommand

public java.lang.String getUserActionCommand()
Specified by:
getUserActionCommand in interface ActionContext

setUserActionCommand

public void setUserActionCommand(java.lang.String userActionCommand)
This method can be used to set the user action command directly to the UserActionContext. When set directly, toString() method will explicitly set the user action cmd to sb. fromString() method will set the value back into the getter setter for user action command. If user action command is set using below statements. fromString() will set it back to setUserActionCommand() and contextDataList will not have entry for useraction command. However older versions of code will have the getter/setter hence will have to get the useraction command from the contextdata list itself. //-------------------------------------------------------------------------------------------------------------------------------------------------- UserContextData userContextData = new UserContextData(PluginConstants.USER_ACTION_COMMAND, PluginConstants.USER_ACTION_COMMAND, "SOME_VALUE" new CredentialMetaData((PluginConstants.HIDDEN)); actionContext.getContextData().add(userContextData); //--------------------------------------------------------------------------------------------------------------------------------------------------
Specified by:
setUserActionCommand in interface ActionContext
Parameters:
userActionCommand -

Skip navigation links

Oracle Fusion Middleware Extensibility Java API Reference for Oracle Access Management Access Manager
11g Release 2 (11.1.2.1.0)

E27137-02


Copyright © 2013, Oracle Corp. All Rights Reserved.