AndroidAttestationIssuer

The runtime counterpart of IssuerSpec: a root, an attestation CA chain, and the keys to sign with.

All crypto material lives here and nowhere else; spec is the configuration that produced it, with a generated root filled back in, so GeneratorConfig(issuer.spec, …) reproduces this issuer exactly.

Every issue call mints a fresh attestation key and a fresh attested leaf key, as real devices do.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Signs the per-issuance attestation key. Bottom-most CA of caChain, or root itself.

Link copied to clipboard

The trust anchor of everything this issuer issues.

Link copied to clipboard
val rootCertificate: X509Certificate
Link copied to clipboard

Functions

Link copied to clipboard
fun configuration(attestations: List<AttestationSpec> = listOf(AttestationSpec()), outputDirectory: String = "generator-output"): GeneratorConfig

The configuration reproducing this issuer, together with the attestations to create from it.

Link copied to clipboard
fun issue(attestation: AttestationSpec = AttestationSpec()): IssuedAttestation

Builds the statement with the type-safe DSL instead of passing a prepared AttestationSpec.