NodeInterceptorHandler

Follow the Interceptor.Chain and executes each Interceptor in the chain.

Constructors

Link copied to clipboard
constructor(context: Context, interceptors: List<Interceptor<out Any>>, listener: NodeListener<out Any>, index: Int)

Properties

Link copied to clipboard
Link copied to clipboard
open val context: Context
Link copied to clipboard
private open var index: Int
Link copied to clipboard
private open var interceptors: List<out Interceptor<out Any>>
Link copied to clipboard
Link copied to clipboard
private val TAG: String

Functions

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 onCallbackReceived(@NonNull 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
Called when an asynchronous call fails to complete.
Link copied to clipboard
open fun onSuccess(result: SSOToken)
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
abstract fun proceed(object: Any)
open fun proceed(data: Any)
Proceed and execute the chain.