NodeListener

interface NodeListener<T> : FRListener<T>

Interface for an object that listens to changes resulting from a AuthService.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun getStage(callbacks: List<Callback>): String?

Workaround stage property for AM version < 7.0. https://github.com/jaredjensen/forgerock-sdk-blog/blob/master/auth_tree_stage.md

Link copied to clipboard
abstract fun onCallbackReceived(node: Node)

Notify the listener that the AuthService has been started and moved to the first node.

open fun onCallbackReceived(authServiceId: String, response: JSONObject): Node

Transform the response from AM Intelligent Tree to Node Object, after the transformation .onCallbackReceived will be invoked with the returned Node.

Link copied to clipboard
abstract fun onException(e: Exception)

Called when an asynchronous call fails to complete.

Link copied to clipboard
abstract fun onSuccess(result: T)

Called when an asynchronous call completes successfully.

Link copied to clipboard
open fun parseCallback(jsonArray: JSONArray): List<Callback>

Parse the JSON Array callback response from AM, and transform to Callback instances.