FidoRegistrationCollector

A collector for FIDO2 registration.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var publicKeyCredentialCreationOptions: JsonObject

The public key credential creation options.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun init(input: JsonObject): Collector<JsonObject>
Link copied to clipboard
open override fun payload(): JsonObject?

Returns an empty JsonObject when a FIDO error has occurred — non-null sentinel so Collectors.eventType picks up this collector and the actionKey error path fires. Subclasses override to provide the success payload.

Link copied to clipboard
suspend fun register(block: FidoRegistrationCustomizer.() -> Unit = {}): Result<JsonObject>

Register a new FIDO2 credential.