Package org.forgerock.am.trees.model
Class TreeStateFactory
java.lang.Object
org.forgerock.am.trees.model.TreeStateFactory
Factory class for creating TreeState instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TreeStateBuilderbuilder()Creates a new TreeState builder.static TreeStatecreateInitial(Realm realm, Integer targetAuthLevel, Map<String, Object> initialData, int maxTreeDuration) Creates a tree state that represents start of authentication tree.static TreeStateReturns a TreeState object from the JsonValue.
-
Method Details
-
builder
Creates a new TreeState builder.- Returns:
- the builder
-
fromJson
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
-