Class TreeContext.Builder
java.lang.Object
org.forgerock.openam.auth.node.api.TreeContext.Builder
- Enclosing class:
- TreeContext
A builder for TreeContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the TreeContext.Set the callbacks.identifiedIdentity(Optional<IdentifiedIdentity> identifiedIdentity) Set the identified identity.identifiedIdentity(IdentifiedIdentity identifiedIdentity) Set the identified identity.identityResource(String identityResource) Set the identity resource.requestContext(ExternalRequestContext requestContext) Set the request context.resumedFromSuspend(boolean resumedFromSuspend) Set resumedFromSuspend.secureState(JsonValue secureState) Set the secure state.sharedState(JsonValue sharedState) Set the shared state.transientState(JsonValue transientState) Set the transient state.treeStateContainers(Set<String> treeStateContainers) Set the tree state containers.universalId(String universalId) Set the universal id.universalId(Optional<String> universalId) Set the universal id.
-
Constructor Details
-
Builder
public Builder()Constructor, for required parameters.
-
-
Method Details
-
identityResource
Set the identity resource.- Parameters:
identityResource- The identity resource- Returns:
- this builder
-
transientState
Set the transient state.- Parameters:
transientState- The transient state- Returns:
- this builder
-
secureState
Set the secure state.- Parameters:
secureState- The secure state- Returns:
- this builder
-
requestContext
Set the request context.- Parameters:
requestContext- The request context- Returns:
- this builder
-
callbacks
Set the callbacks.- Parameters:
callbacks- The callbacks- Returns:
- this builder
-
resumedFromSuspend
Set resumedFromSuspend.- Parameters:
resumedFromSuspend- whether the tree has been resumed from having been suspended- Returns:
- this builder
-
universalId
Set the universal id.- Parameters:
universalId- The universal id- Returns:
- this builder
-
universalId
Set the universal id.- Parameters:
universalId- The universal id- Returns:
- this builder
-
identifiedIdentity
Set the identified identity.- Parameters:
identifiedIdentity- The identified identity- Returns:
- this builder
-
identifiedIdentity
Set the identified identity.- Parameters:
identifiedIdentity- The identified identity- Returns:
- this builder
-
treeStateContainers
Set the tree state containers.- Parameters:
treeStateContainers- The tree state containers- Returns:
- this builder
-
build
Build the TreeContext.- Returns:
- the TreeContext
-