NodeListenerFuture

abstract class NodeListenerFuture<T> : NodeListener<T> , Future<V>

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
private open var countDownLatch: CountDownLatch
Link copied to clipboard
private open var done: Boolean
Link copied to clipboard
private open var exception: Exception
Link copied to clipboard
private open var result: Any
Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun cancel(mayInterruptIfRunning: Boolean): Boolean
Link copied to clipboard
open fun get(): T
open fun get(timeout: Long, unit: TimeUnit): T
Link copied to clipboard
open fun getStage(callbacks: List<out 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
open fun isCancelled(): Boolean
Link copied to clipboard
open fun isDone(): Boolean
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
open fun onException(e: Exception)
Called when an asynchronous call fails to complete.
Link copied to clipboard
open fun onSuccess(token: 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.

Link copied to clipboard
open fun reset()