verifyAttestation

@JvmName(name = "verifyAttestation")
fun verifyAttestation(certificates: List<X509Certificate>, verificationDate: Date = Date(), expectedChallenge: ByteArray): ParsedAttestationRecord(source)

Deprecated

To be removed in 1.1

Replace with

verify(certificates, verificationDate, expectedChallenge).getOrThrow().attestationExension

Java-Friendly method

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

AttestationExtension 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