Class UserActionContext

java.lang.Object
oracle.security.am.plugin.impl.UserActionContext
All Implemented Interfaces:
ActionContext
Direct Known Subclasses:
CredentialCollectionActionContext, RedirectionActionContext

public class UserActionContext extends Object implements ActionContext
  • Constructor Details

    • UserActionContext

      public UserActionContext()
    • UserActionContext

      public UserActionContext<wbr>(String credentialActionCommand)
  • Method Details

    • getContextData

      public List<ContextData> getContextData()
      Specified by:
      getContextData in interface ActionContext
    • setContextData

      public void setContextData<wbr>(List<ContextData> contextData)
      Specified by:
      setContextData in interface ActionContext
    • toString

      public String toString()
      Specified by:
      toString in interface ActionContext
      Overrides:
      toString in class Object
    • fromString

      public void fromString<wbr>(String token)
      Specified by:
      fromString in interface ActionContext
    • getUserActionCommand

      public String getUserActionCommand()
      Specified by:
      getUserActionCommand in interface ActionContext
    • setUserActionCommand

      public void setUserActionCommand<wbr>(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 -