AndroidAttestationChecker

Constructors

Link copied to clipboard
constructor(attestationConfiguration: AndroidAttestationConfiguration, verifyChallenge: (expected: ByteArray, actual: ByteArray) -> Boolean)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class RevocationList(json: JsonObject)

taken and adapted from com.google.android.attestation.CertificateRevocationStatus to separate downloading and checking

Functions

Link copied to clipboard
fun collectDebugInfo(certificates: List<X509Certificate>, expectedChallenge: ByteArray, verificationDate: Date = Date()): AndroidDebugAttestationStatement

Packs

Link copied to clipboard
open fun verifyAttestation(certificates: List<X509Certificate>, verificationDate: Date = Date(), expectedChallenge: ByteArray): ParsedAttestationRecord

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.