MATCHES_CERTIFICATE

Checks that the keyMintSecurityLevel matches the security level claimed by the certificate. this constraint may be used in conjunction with other security level constraints. e.g. it may be combined with STRICT to verify that the keyMintSecurityLevel is precisely SecurityLevel.STRONG_BOX and that the security level matches the value claimed by the Google-signed certificate.

Properties

Link copied to clipboard
open override val label: String

Fixed label, suitable for logging or metrics.

Functions

Link copied to clipboard
open override fun check(description: KeyDescription, certPath: KeyAttestationCertPath): Constraint.Result

Verifies that description satisfies this Constraint.

Link copied to clipboard
open override fun getFailureMessage(description: KeyDescription, certPath: KeyAttestationCertPath): String