PasskeyCredential

@Serializable
data class PasskeyCredential(val credentialId: ByteArray, val publicKey: ByteArray, val authenticatorData: ByteArray, val clientDataJSON: ByteArray, val attestationObject: ByteArray? = null)

Represents a WebAuthn passkey credential created during registration.

This data class contains the cryptographic credential information returned after successfully registering a new passkey with the authenticator.

Constructors

Link copied to clipboard
constructor(credentialId: ByteArray, publicKey: ByteArray, authenticatorData: ByteArray, clientDataJSON: ByteArray, attestationObject: ByteArray? = null)

Properties

Link copied to clipboard

Optional attestation object containing authenticator attestation

Link copied to clipboard

Data returned by the authenticator during registration

Link copied to clipboard

JSON data from the client containing challenge and origin

Link copied to clipboard

Unique identifier for this credential (base64url decoded)

Link copied to clipboard

The public key associated with this credential

Functions

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

Compares this PasskeyCredential instance with another object for equality.

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

Returns the hash code value for this PasskeyCredential instance.