KeyConstraints

@Serializable
data class KeyConstraints(val algorithmParameters: KeyConstraints.AlgorithmParameters, val keyProtection: KeyConstraints.KeyProtection? = null)(source)

Constraints on the key to be created on the client. If properly set, allows for ridiculously hands-free key and attestation statement creation

Note that not all clients can enforce all constraints!

Constructors

Link copied to clipboard
constructor(algorithmParameters: KeyConstraints.AlgorithmParameters, keyProtection: KeyConstraints.KeyProtection? = null)

Types

Link copied to clipboard
@Serializable
sealed class AlgorithmParameters
Link copied to clipboard
@Serializable
data class AuthPrompt(val message: String, val cancelText: String)
Link copied to clipboard
@Serializable
data class KeyProtection(val timeout: Duration? = null, val deviceLock: Boolean? = null, val biometry: Boolean? = null, val allowNewBiometricFactors: Boolean? = null)

Properties

Link copied to clipboard

optional algorithm-specific parameters, if any

Link copied to clipboard

Key protection requirements

Functions

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