Key Attestation Status
data class KeyAttestationStatus(val isHardwareBacked: Boolean, val securityLevel: SecurityLevel, val keyCreatedAt: Long?, val attestationChain: List<X509Certificate>?, val keyAlias: String, val keyAlgorithm: String?, val keySize: Int?)
Attestation status for a cryptographic key.
Provides information about key storage, security properties, and optional attestation certificate chain for remote verification.
Constructors
Link copied to clipboard
constructor(isHardwareBacked: Boolean, securityLevel: SecurityLevel, keyCreatedAt: Long?, attestationChain: List<X509Certificate>?, keyAlias: String, keyAlgorithm: String?, keySize: Int?)
Properties
Link copied to clipboard
Certificate chain for remote attestation, if available. The chain starts with the attestation certificate and ends at a root CA.
Link copied to clipboard
Check if this key has a valid attestation chain.
Link copied to clipboard
True if key is stored in secure hardware.
Link copied to clipboard
The key algorithm (e.g., "AES", "EC").
Link copied to clipboard
Timestamp when the key was created (epoch ms), if known.
Link copied to clipboard
The security level of key storage.
Functions
Link copied to clipboard
fun meetsRequirements(requireHardware: Boolean = false, minimumSecurityLevel: SecurityLevel = SecurityLevel.SOFTWARE): Boolean
Check if this key meets minimum security requirements.