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 intDefault version for nodes.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<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.The maximum idle time for the user.The maximum session time for the user.Optionally the maximum duration the tree is allowed to run for.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 JsonValueDeprecated.static final StringKey for the stage return property.The duration for which the authentication request is suspended.final SuspensionHandlerTheSuspensionHandlerto call when the authentication process is suspended by the authentication framework.final JsonValueDeprecated.useNodeStateinstead, setting state in the action is no longer required.Deprecated.useidentifiedIdentityinstead.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.booleanReturns true if the suspension handler is set.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.static Action.ActionBuildersuspend(SuspensionHandler suspensionHandler, Duration duration) 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:
-
DEFAULT_VERSION
public static final int DEFAULT_VERSIONDefault version for nodes.- See Also:
-
transientState
Deprecated.useNodeStateinstead, setting state in the action is no longer required.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. -
maxSessionTime
The maximum session time for the user. -
maxIdleTime
The maximum idle time for the user. -
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. -
suspendDuration
The duration for which the authentication request is suspended. -
maxTreeDuration
Optionally the maximum duration the tree is allowed to run for.
-
-
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.
-
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.duration- The duration for which the authentication request is suspended.- 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.
-
hasSuspensionHandler
public boolean hasSuspensionHandler()Returns true if the suspension handler is set.- Returns:
- true if the action is a request to suspend the authentication flow.
-
NodeStateinstead, setting state in the action is no longer required.