Class Action
- java.lang.Object
- 
- org.forgerock.openam.auth.node.api.Action
 
- 
 @SupportedAll public final class Action extends Object Immutable container for the result of processing a node.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAction.ActionBuilderBuilder for theAction.
 - 
Field SummaryFields Modifier and Type Field Description List<Callback>callbacksCallbacks requested by the node when the outcome is null.static StringDESCRIPTIONKey for the description return property.StringerrorMessageThe error message to present to the caller when the FAILURE node is reached.static StringHEADERKey for the header return property.Optional<org.forgerock.openam.auth.node.api.IdentifiedIdentity>identifiedIdentityOptionally the identity confirmed to exist as part of this action.StringlockoutMessageThe error message to present to the caller when the user is locked out.StringoutcomeResult of the node.Map<String,Object>returnPropertiesProperties to return to the client.List<JsonValue>sessionHooksList of classes implementingTreeHookthat run after successful login.Map<String,String>sessionPropertiesProperties that will be included in the user's session if/when it is created.JsonValuesharedStateThe output state of the node.static StringSTAGEKey for the stage return property.SuspensionHandlersuspensionHandlerTheSuspensionHandlerto call when the authentication process is suspended by the authentication framework.JsonValuetransientStateThe transient state of the node.Optional<String>universalIdDeprecated.useidentifiedIdentityinstead.List<String>webhooksList of webhooks that run after logout.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Action.ActionBuildergoTo(String outcome)Move on to the next node in the tree that is connected to the given outcome.static Action.ActionBuildersend(List<? extends Callback> callbacks)Send the given callbacks to the user for them to interact with.static Action.ActionBuildersend(Callback... callbacks)Send the given callbacks to the user for them to interact with.booleansendingCallbacks()Returns true if the action is a request for input.static Action.ActionBuildersuspend(SuspensionHandler suspensionHandler)Suspend the current authentication request, and allow the end-user to resume it later by clicking on a link for example.
 
- 
- 
- 
Field Detail- 
HEADERpublic static final String HEADER Key for the header return property.- See Also:
- Constant Field Values
 
 - 
DESCRIPTIONpublic static final String DESCRIPTION Key for the description return property.- See Also:
- Constant Field Values
 
 - 
STAGEpublic static final String STAGE Key for the stage return property.- See Also:
- Constant Field Values
 
 - 
sharedStatepublic final JsonValue sharedState The output state of the node.
 - 
transientStatepublic final JsonValue transientState The transient state of the node.
 - 
outcomepublic final String outcome Result of the node. May be null.
 - 
returnPropertiespublic final Map<String,Object> returnProperties Properties to return to the client.
 - 
errorMessagepublic final String errorMessage The error message to present to the caller when the FAILURE node is reached.
 - 
lockoutMessagepublic final String lockoutMessage The error message to present to the caller when the user is locked out.
 - 
callbackspublic final List<Callback> callbacks Callbacks requested by the node when the outcome is null. May be null.
 - 
sessionPropertiespublic final Map<String,String> sessionProperties Properties that will be included in the user's session if/when it is created.
 - 
sessionHookspublic final List<JsonValue> sessionHooks List of classes implementingTreeHookthat run after successful login.
 - 
suspensionHandlerpublic final SuspensionHandler suspensionHandler TheSuspensionHandlerto call when the authentication process is suspended by the authentication framework.
 - 
universalId@Deprecated public final Optional<String> universalId Deprecated.useidentifiedIdentityinstead.The universal id of the identity object.
 - 
identifiedIdentitypublic final Optional<org.forgerock.openam.auth.node.api.IdentifiedIdentity> identifiedIdentity Optionally the identity confirmed to exist as part of this action.
 
- 
 - 
Method Detail- 
goTopublic static Action.ActionBuilder goTo(String outcome) Move on to the next node in the tree that is connected to the given outcome.- Parameters:
- outcome- the outcome.
- Returns:
- an action builder to provide additional details.
 
 - 
sendpublic static Action.ActionBuilder send(List<? extends Callback> callbacks) Send the given callbacks to the user for them to interact with.- Parameters:
- callbacks- a non-empty list of callbacks.
- Returns:
- an action builder to provide additional details.
 
 - 
sendpublic static Action.ActionBuilder send(Callback... callbacks) Send the given callbacks to the user for them to interact with.- Parameters:
- callbacks- a non-empty list of callbacks.
- Returns:
- an action builder to provide additional details.
 
 - 
suspendpublic static Action.ActionBuilder suspend(SuspensionHandler suspensionHandler) Suspend the current authentication request, and allow the end-user to resume it later by clicking on a link for example.- Parameters:
- suspensionHandler- The- SuspensionHandlerto use for sending the suspension ID to the end-users.
- Returns:
- An action builder that suspends the current authentication flow.
 
 - 
sendingCallbackspublic boolean sendingCallbacks() Returns true if the action is a request for input.- Returns:
- true if the action need to request for input, false otherwise.
 
 
- 
 
-