WebAuthnAuthenticationCallback

A callback that handle WebAuthnAuthentication Node.

Constructors

Link copied to clipboard
constructor(jsonObject: JSONObject, index: Int)
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
protected var _id: Int
Link copied to clipboard
protected var content: String
Link copied to clipboard
private var value: String

Functions

Link copied to clipboard
suspend fun authenticate(context: Context, node: Node, selector: WebAuthnKeySelector = WebAuthnKeySelector.DEFAULT)
fun authenticate(context: Context, node: Node, selector: WebAuthnKeySelector = WebAuthnKeySelector.DEFAULT, listener: FRListener<Void?>)

Perform WebAuthn Authentication

Link copied to clipboard
open override fun get_id(): Int

Return the unique id for this callback. The id only available with Callback that using PageCallback

Link copied to clipboard
open override fun getContent(): String

Return the raw content of the Callback.

Link copied to clipboard
protected open fun getContentAsJson(): JSONObject
Link copied to clipboard
open override fun getDerivedCallback(): Class<out Callback>?

Retrieve the derived callback class, return null if no derive callback found.

Link copied to clipboard
private open fun getInput(content: JSONObject, index: Int): JSONObject
Link copied to clipboard
open fun getInputValue(): Any

Get the first value for input

open fun getInputValue(index: Int): Any

Get the value for input

Link copied to clipboard
protected open fun getName(jsonObject: JSONObject): String
Link copied to clipboard
open override fun getType(): String

Return the type of the Callback, the type name should align with the Callback type returned from AM

Link copied to clipboard
open fun getValue(): JSONObject
Link copied to clipboard
protected open override fun setAttribute(name: String, value: Any)
Link copied to clipboard
protected open fun setContent(jsonObject: JSONObject)

Sets the value of the Callback

Link copied to clipboard
open fun setErrorRethrow(node: Node, e: Exception)

Set the client error and rethrow the exception

Link copied to clipboard
open fun setHiddenCallbackValue(node: Node, value: String)

Set value to the HiddenValueCallback which associated with the WebAuthn Callback.

Link copied to clipboard
protected open fun setValue(value: Any)

Set the first value for input

protected open fun setValue(value: Any, index: Int)

Set the value for the input.