SecurityLevelConstraint

@Immutable
sealed class SecurityLevelConstraint : Constraint

Configuration for validating the attestationSecurityLevel and keyMintSecurityLevel fields in an Android attestation certificate.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Immutable
data object CONSISTENT : SecurityLevelConstraint

Checks that the attestationSecurityLevel is equal to the keyMintSecurityLevel, regardless of security level.

Link copied to clipboard
@Immutable
data object NOT_SOFTWARE : SecurityLevelConstraint

Checks that the attestationSecurityLevel is equal to the keyMintSecurityLevel, and that this security level is not SecurityLevel.SOFTWARE.

Link copied to clipboard
@Immutable
data class STRICT(val expectedVal: SecurityLevel) : SecurityLevelConstraint

Checks that both the attestationSecurityLevel and keyMintSecurityLevel match the expected value.

Properties

Link copied to clipboard
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): Constraint.Result

Verifies that description satisfies this Constraint.

Link copied to clipboard