Constraint

@ThreadSafe
sealed interface Constraint

An individual limit to place on the KeyDescription from an attestation certificate.

Inheritors

Types

Link copied to clipboard
sealed interface Result
Link copied to clipboard
Link copied to clipboard
data class Violated(val failureMessage: String) : Constraint.Result

Properties

Link copied to clipboard
abstract val label: String

Fixed label, suitable for logging or metrics.

Functions

Link copied to clipboard
abstract fun check(description: KeyDescription): Constraint.Result

Verifies that description satisfies this Constraint.