AuthServiceResponseHandler

Implementation for handling AuthService response, and provide feedback to the registered NodeListener

Constructors

Link copied to clipboard
constructor(authService: AuthService, @NonNull listener: NodeListener<SSOToken>)

Properties

Link copied to clipboard
private open var authService: AuthService
Link copied to clipboard
private open var listener: NodeListener<SSOToken>
Link copied to clipboard
val SUSPENDED_AUTH_SESSION_EXCEPTION: String = "org.forgerock.openam.auth.nodes.framework.token.SuspendedAuthSessionException"
Link copied to clipboard
private val TAG: String
Link copied to clipboard
private val TOKEN_ID: String = "tokenId"

Functions

Link copied to clipboard
open fun close(response: Response)
Close the response body stream.
Link copied to clipboard
open fun getBody(response: Response): String
Link copied to clipboard
private open fun getError(body: JSONObject): String
Link copied to clipboard
open fun handleError(e: Exception)

open fun handleError(response: Response, listener: FRListener<out Any>)
Handle Exception, provide feedback to registered FRListener
Link copied to clipboard
open fun handleResponse(response: Response)
Handle AuthService APIs response and trigger registered NodeListener