Skip to main content

PasskeyAuthenticator

open class PasskeyAuthenticator : Disposable, AutoCloseable, PasskeyAuthenticatorInterface

A passkey authenticator.

BCS

The BCS serialized form for this type is defined by the following ABNF:

passkey-bcs = bytes               ; where the contents of the bytes are
; defined by <passkey>
passkey = passkey-flag
bytes ; passkey authenticator data
client-data-json ; valid json
simple-signature ; required to be a secp256r1 signature

client-data-json = string ; valid json

See https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata for the required json-schema for the client-data-json rule. In addition, IOTA currently requires that the CollectedClientData.type field is required to be webauthn.get.

Note: Due to historical reasons, signatures are serialized slightly different from the majority of the types in IOTA. In particular if a signature is ever embedded in another structure it generally is serialized as bytes meaning it has a length prefix that defines the length of the completely serialized signature.

Functions

NameSummary
authenticatorDataopen override fun authenticatorData(): ByteArray
Opaque authenticator data for this passkey signature.
challengeopen override fun challenge(): ByteArray
The parsed challenge message for this passkey signature.
clientDataJsonopen override fun clientDataJson(): String
Structured, unparsed, JSON for this passkey signature.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
publicKeyopen override fun publicKey(): PasskeyPublicKey
The passkey public key.
signatureopen override fun signature(): SimpleSignature
The passkey signature.
toStringopen override fun toString(): String