validateAndroidKeyAttestation
Checks if Android key attestation is valid according to the given criteria.
On JVM platforms, this uses the com.android.keyattestation:keyattestation library to validate the certificate chain and attestation extension, which accounts for various device-specific KeyMint/Keymaster quirks and distinguishes between factory-provisioned and remotely-provisioned (RKP) certificate chains.
Return
challenge/nonce used during key creation
Parameters
Android key attestation
challenge/nonce used during key creation (if needs to be checked)
check that certificate chain is rooted in a known Google key
check that the device has booted securely
identifies acceptable security level
identifies trusted app signing keys
identifies trusted app package names
time instant used to validate certificate validity intervals
whether to validate validity intervals for CA certificates in the chain (ignored on JVM where CA validity rules are determined by the provisioning method of the chain)
whether to fetch and check Google's certificate revocation status list from https://android.googleapis.com/attestation/status (only supported on JVM when revokedSerials is null)
optional explicit set of lowercase hexadecimal serial numbers of revoked certificates to reject, or null to defer to checkRevocation
Throws
if Android key attestation is not valid