public final class TreeContext extends Object
Modifier and Type | Field and Description |
---|---|
ExternalRequestContext |
request
The HTTP request associated with the current authentication request.
|
org.forgerock.json.JsonValue |
sharedState
The shared state that has accumulated so far by traversing the tree.
|
org.forgerock.json.JsonValue |
transientState
The state that is transient and that won't be stored across requests.
|
Constructor and Description |
---|
TreeContext(org.forgerock.json.JsonValue sharedState,
ExternalRequestContext request,
List<? extends Callback> callbacks)
Construct a tree context for the current state.
|
TreeContext(org.forgerock.json.JsonValue sharedState,
org.forgerock.json.JsonValue transientState,
ExternalRequestContext request,
List<? extends Callback> callbacks)
Construct a tree context for the current state.
|
Modifier and Type | Method and Description |
---|---|
List<? extends Callback> |
getAllCallbacks()
Gets all the callbacks sent in the request.
|
boolean |
hasCallbacks()
Check if any callbacks have been submitted in this authenticate request.
|
public final org.forgerock.json.JsonValue sharedState
public final ExternalRequestContext request
public final org.forgerock.json.JsonValue transientState
public TreeContext(org.forgerock.json.JsonValue sharedState, ExternalRequestContext request, List<? extends Callback> callbacks)
sharedState
- The shared state.request
- The request associated with the current authentication request.callbacks
- The callbacks received in the current authentication request.public TreeContext(org.forgerock.json.JsonValue sharedState, org.forgerock.json.JsonValue transientState, ExternalRequestContext request, List<? extends Callback> callbacks)
sharedState
- The shared state.transientState
- The transient state.request
- The request associated with the current authentication request.callbacks
- The callbacks received in the current authentication request.public List<? extends Callback> getAllCallbacks()
Use TreeContext.getCallback(Class)
in preference to this method.
public boolean hasCallbacks()
true
if there are callbacks available.Copyright © 2010-2017, ForgeRock All Rights Reserved.