Package oracle.security.am.plugin.impl
Class UserActionContext
java.lang.Object
oracle.security.am.plugin.impl.UserActionContext
- All Implemented Interfaces:
ActionContext
- Direct Known Subclasses:
CredentialCollectionActionContext,RedirectionActionContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromString<wbr>(String token)voidsetContextData<wbr>(List<ContextData> contextData)voidsetUserActionCommand<wbr>(String userActionCommand)This method can be used to set the user action command directly to the UserActionContext.toString()
-
Constructor Details
-
UserActionContext
public UserActionContext() -
UserActionContext
-
-
Method Details
-
getContextData
- Specified by:
getContextDatain interfaceActionContext
-
setContextData
- Specified by:
setContextDatain interfaceActionContext
-
toString
- Specified by:
toStringin interfaceActionContext- Overrides:
toStringin classObject
-
fromString
- Specified by:
fromStringin interfaceActionContext
-
getUserActionCommand
- Specified by:
getUserActionCommandin interfaceActionContext
-
setUserActionCommand
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:
setUserActionCommandin interfaceActionContext- Parameters:
userActionCommand-
-