Class TreeStateFactory

java.lang.Object
org.forgerock.am.trees.model.TreeStateFactory

public final class TreeStateFactory extends Object
Factory class for creating TreeState instances.
  • Method Details

    • builder

      public static TreeStateBuilder builder()
      Creates a new TreeState builder.
      Returns:
      the builder
    • fromJson

      public static TreeState fromJson(JsonValue json, Duration maxSessionTime)
      Returns a TreeState object from the JsonValue.
      Parameters:
      json - Json representation of the TreeState object.
      maxSessionTime - the maximum session time.
      Returns:
      TreeState object
    • createInitial

      public static TreeState createInitial(Realm realm, Integer targetAuthLevel, Map<String,Object> initialData, int maxTreeDuration)
      Creates a tree state that represents start of authentication tree.
      Parameters:
      realm - the realm in which the authentication is taking place.
      targetAuthLevel - minimum auth level required for authentication.
      initialData - the initial data passed to the newly created tree.
      maxTreeDuration - the maximum duration of the authentication.
      Returns:
      the initial TreeState