KeyAttestationReporter

Reports on key attestation status for compliance and security auditing.

Provides information about whether keys are hardware-backed and can generate attestation challenge responses for remote verification.

Usage:

val reporter = KeyAttestationReporter(context)

// Check key security properties
val status = reporter.getAttestationStatus("my_key_alias")
if (status.isHardwareBacked) {
// Key is protected by hardware
}

// Generate attestation for remote verification
val challenge = serverProvidedChallenge
val response = reporter.generateAttestationChallengeResponse("attestation_key", challenge)
// Send response to server for verification

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard

Generate an attestation challenge response.

Link copied to clipboard

Get attestation status for a symmetric key (AES).

Link copied to clipboard

Get attestation status for all SDK keys.

Link copied to clipboard

Check if the device supports hardware-backed key attestation.