TrustedDeviceChallenge

@Serializable
data class TrustedDeviceChallenge(val challenge: String, val challengeId: String, val trustedDeviceId: String? = null, val clientData: String, val expiresAt: Long, val algorithm: String = TrustedDevice.ES256_ALGORITHM)

A server challenge for trusted-device enrollment or sign-in.

The clientData string must be signed with the local trusted-device private key and returned to the server exactly as received.

Constructors

Link copied to clipboard
constructor(challenge: String, challengeId: String, trustedDeviceId: String? = null, clientData: String, expiresAt: Long, algorithm: String = TrustedDevice.ES256_ALGORITHM)

Properties

Link copied to clipboard

The signature algorithm required for the challenge.

Link copied to clipboard

The challenge value.

Link copied to clipboard
@SerialName(value = "challenge_id")
val challengeId: String

The unique identifier of the challenge.

Link copied to clipboard
@SerialName(value = "client_data")
val clientData: String

The exact client data string that must be signed.

Link copied to clipboard
@SerialName(value = "expires_at")
val expiresAt: Long

The time when the challenge expires, in milliseconds since epoch.

Link copied to clipboard
@SerialName(value = "trusted_device_id")
val trustedDeviceId: String?

The trusted-device credential ID for sign-in challenges.