Class Action
java.lang.Object
org.forgerock.openam.auth.node.api.Action
Immutable container for the result of processing a node.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionCallbacks requested by the node when the outcome is null.static final StringKey for the description return property.final StringThe error message to present to the caller when the FAILURE node is reached.static final StringKey for the header return property.final Optional<org.forgerock.openam.auth.node.api.IdentifiedIdentity>Optionally the identity confirmed to exist as part of this action.final StringThe error message to present to the caller when the user is locked out.final StringResult of the node.Properties to return to the client.List of classes implementingTreeHookthat run after successful login.Properties that will be included in the user's session if/when it is created.final JsonValueThe output state of the node.static final StringKey for the stage return property.final SuspensionHandlerTheSuspensionHandlerto call when the authentication process is suspended by the authentication framework.final JsonValueThe transient state of the node.Deprecated.List of webhooks that run after logout. -
Method Summary
Modifier and TypeMethodDescriptionstatic Action.ActionBuilderMove on to the next node in the tree that is connected to the given outcome.static Action.ActionBuilderSend the given callbacks to the user for them to interact with.static Action.ActionBuilderSend the given callbacks to the user for them to interact with.booleanReturns 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 Details
-
HEADER
Key for the header return property.- See Also:
-
DESCRIPTION
Key for the description return property.- See Also:
-
STAGE
Key for the stage return property.- See Also:
-
transientState
The transient state of the node. -
outcome
Result of the node. May be null. -
returnProperties
Properties to return to the client. -
errorMessage
The error message to present to the caller when the FAILURE node is reached. -
lockoutMessage
The error message to present to the caller when the user is locked out. -
callbacks
Callbacks requested by the node when the outcome is null. May be null. -
sessionProperties
Properties that will be included in the user's session if/when it is created. -
sessionHooks
List of classes implementingTreeHookthat run after successful login. -
webhooks
List of webhooks that run after logout. -
suspensionHandler
TheSuspensionHandlerto call when the authentication process is suspended by the authentication framework. -
universalId
Deprecated.useidentifiedIdentityinstead.The universal id of the identity object. -
identifiedIdentity
Optionally the identity confirmed to exist as part of this action.
-
-
Method Details
-
goTo
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.
-
send
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.
-
send
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.
-
suspend
Suspend the current authentication request, and allow the end-user to resume it later by clicking on a link for example.- Parameters:
suspensionHandler- TheSuspensionHandlerto use for sending the suspension ID to the end-users.- Returns:
- An action builder that suspends the current authentication flow.
-
sendingCallbacks
public boolean sendingCallbacks()Returns true if the action is a request for input.- Returns:
- true if the action need to request for input, false otherwise.
-
identifiedIdentityinstead.