Class Action
java.lang.Object
org.forgerock.openam.auth.node.api.Action
Immutable container for the result of processing a node.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionCallbacks requested by the node when the outcome is null.static final String
Key for the description return property.final String
The error message to present to the caller when the FAILURE node is reached.static final String
Key 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 String
The error message to present to the caller when the user is locked out.final String
Result of the node.Properties to return to the client.List of classes implementingTreeHook
that run after successful login.Properties that will be included in the user's session if/when it is created.final JsonValue
The output state of the node.static final String
Key for the stage return property.final SuspensionHandler
TheSuspensionHandler
to call when the authentication process is suspended by the authentication framework.final JsonValue
The transient state of the node.Deprecated.List of webhooks that run after logout. -
Method Summary
Modifier and TypeMethodDescriptionstatic Action.ActionBuilder
Move on to the next node in the tree that is connected to the given outcome.static Action.ActionBuilder
Send the given callbacks to the user for them to interact with.static Action.ActionBuilder
Send the given callbacks to the user for them to interact with.boolean
Returns true if the action is a request for input.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.
-
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 implementingTreeHook
that run after successful login. -
webhooks
List of webhooks that run after logout. -
suspensionHandler
TheSuspensionHandler
to call when the authentication process is suspended by the authentication framework. -
universalId
Deprecated.useidentifiedIdentity
instead.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
- TheSuspensionHandler
to 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.
-
identifiedIdentity
instead.