Interface TreeHook
A TreeHook encapsulates some functionality that should be executed at the end of a tree, after authentication.
They can be added by nodes.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic @interface
Annotation that describes the metadata of the node. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept()
Main method that will contain the logic that needs to be executed when the session hook is called.default void
Main method that will contain the logic that needs to be executed on tree failure.
-
Field Details
-
SESSION_HOOK_CLASS_KEY
Session hook class key.- See Also:
-
NODE_ID_KEY
Node ID key.- See Also:
-
NODE_TYPE_KEY
Node type key.- See Also:
-
NODE_CONFIG_KEY
Node config key.- See Also:
-
HOOK_DATA
Arguments for the session hook.- See Also:
-
-
Method Details
-
accept
void accept() throws org.forgerock.openam.auth.node.api.TreeHookExceptionMain method that will contain the logic that needs to be executed when the session hook is called.- Throws:
org.forgerock.openam.auth.node.api.TreeHookException
- if an exception occurs.
-
acceptFailure
default void acceptFailure() throws org.forgerock.openam.auth.node.api.TreeHookExceptionMain method that will contain the logic that needs to be executed on tree failure.- Throws:
org.forgerock.openam.auth.node.api.TreeHookException
- if an exception occurs.
-