Class TreeContext.Builder

java.lang.Object
org.forgerock.openam.auth.node.api.TreeContext.Builder
Enclosing class:
TreeContext

public static class TreeContext.Builder extends Object
A builder for TreeContext.
  • Constructor Details

    • Builder

      public Builder()
      Constructor, for required parameters.
  • Method Details

    • identityResource

      public TreeContext.Builder identityResource(String identityResource)
      Set the identity resource.
      Parameters:
      identityResource - The identity resource
      Returns:
      this builder
    • sharedState

      public TreeContext.Builder sharedState(JsonValue sharedState)
      Set the shared state.
      Parameters:
      sharedState - The shared state
      Returns:
      this builder
    • transientState

      public TreeContext.Builder transientState(JsonValue transientState)
      Set the transient state.
      Parameters:
      transientState - The transient state
      Returns:
      this builder
    • secureState

      public TreeContext.Builder secureState(JsonValue secureState)
      Set the secure state.
      Parameters:
      secureState - The secure state
      Returns:
      this builder
    • requestContext

      public TreeContext.Builder requestContext(ExternalRequestContext requestContext)
      Set the request context.
      Parameters:
      requestContext - The request context
      Returns:
      this builder
    • callbacks

      public TreeContext.Builder callbacks(List<? extends Callback> callbacks)
      Set the callbacks.
      Parameters:
      callbacks - The callbacks
      Returns:
      this builder
    • resumedFromSuspend

      public TreeContext.Builder resumedFromSuspend(boolean resumedFromSuspend)
      Set resumedFromSuspend.
      Parameters:
      resumedFromSuspend - whether the tree has been resumed from having been suspended
      Returns:
      this builder
    • universalId

      public TreeContext.Builder universalId(String universalId)
      Set the universal id.
      Parameters:
      universalId - The universal id
      Returns:
      this builder
    • universalId

      public TreeContext.Builder universalId(Optional<String> universalId)
      Set the universal id.
      Parameters:
      universalId - The universal id
      Returns:
      this builder
    • identifiedIdentity

      public TreeContext.Builder identifiedIdentity(IdentifiedIdentity identifiedIdentity)
      Set the identified identity.
      Parameters:
      identifiedIdentity - The identified identity
      Returns:
      this builder
    • identifiedIdentity

      public TreeContext.Builder identifiedIdentity(Optional<IdentifiedIdentity> identifiedIdentity)
      Set the identified identity.
      Parameters:
      identifiedIdentity - The identified identity
      Returns:
      this builder
    • treeStateContainers

      public TreeContext.Builder treeStateContainers(Set<String> treeStateContainers)
      Set the tree state containers.
      Parameters:
      treeStateContainers - The tree state containers
      Returns:
      this builder
    • build

      public TreeContext build()
      Build the TreeContext.
      Returns:
      the TreeContext