verify

suspend fun verify(certificates: List<X509Certificate>, verificationDate: Instant = Clock.System.now(), expectedChallenge: ByteArray): KmmResult<List<X509Certificate>>(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

KmmResult<List<X509Certificate>>. Failures contain a subclass of AndroidAttestationException:

  • AttestationValueException if a property fails to verify according to the current configuration

  • RevocationException if a certificate has been revoked

  • CertificateInvalidException if certificates fail to verify

See also

for details on what is and is not checked.