verifyAttestation

open fun verifyAttestation(certificates: List<X509Certificate>, verificationDate: Date = Date(), expectedChallenge: ByteArray): ParsedAttestationRecord(source)

Verifies Android Key attestation Implements in accordance with https://developer.android.com/training/articles/security-key-attestation. Checks are performed according to the properties set in the attestationConfiguration.

Return

ParsedAttestationRecord on success

See also

for details on what is and is not checked.

Throws

if a property fails to verify according to the current configuration

if a certificate has been revoked

if certificates fail to verify