PasskeyAssertion

@Serializable
data class PasskeyAssertion(val credentialId: ByteArray, val authenticatorData: ByteArray, val signature: ByteArray, val clientDataJSON: ByteArray, val userHandle: ByteArray?)

Represents a WebAuthn passkey assertion created during authentication.

This data class contains the cryptographic assertion information returned after successfully authenticating with an existing passkey.

Constructors

Link copied to clipboard
constructor(credentialId: ByteArray, authenticatorData: ByteArray, signature: ByteArray, clientDataJSON: ByteArray, userHandle: ByteArray?)

Properties

Link copied to clipboard

Data returned by the authenticator during authentication

Link copied to clipboard

JSON data from the client containing challenge and origin

Link copied to clipboard

Unique identifier for the credential used (base64url decoded)

Link copied to clipboard

Cryptographic signature proving possession of the private key

Link copied to clipboard

Optional user identifier associated with this credential

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this PasskeyAssertion object with another for equality.

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

Computes a hash code for the PasskeyAssertion instance.