PasskeyAuthenticator
open class PasskeyAuthenticator : Disposable, AutoCloseable, PasskeyAuthenticatorInterface
A passkey authenticator.
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
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
| Name | Summary |
|---|---|
| authenticatorData | open override fun authenticatorData(): ByteArray Opaque authenticator data for this passkey signature. |
| challenge | open override fun challenge(): ByteArray The parsed challenge message for this passkey signature. |
| clientDataJson | open override fun clientDataJson(): String Structured, unparsed, JSON for this passkey signature. |
| close | @Synchronized open override fun close() |
| deriveAddress | open override fun deriveAddress(): Address Derive the Address of the passkey that produced this authenticator. |
| destroy | open override fun destroy() |
| equals | open operator override fun equals(other: Any?): Boolean |
| publicKey | open override fun publicKey(): PasskeyPublicKey The passkey public key. |
| signature | open override fun signature(): SimpleSignature The passkey signature. |
| toBcs | open override fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | open override fun toDisplayString(): String Render this type as human-readable text. |
| toJson | open override fun toJson(): String Convert this type to a JSON encoded string. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| fromBcs | fun fromBcs(bcs: ByteArray): PasskeyAuthenticator Create this type from BCS encoded bytes. |
| fromJson | fun fromJson(json: String): PasskeyAuthenticator Create this type from a JSON encoded string. |