createWithSingleKeyCertifier

fun createWithSingleKeyCertifier(secureArea: SecureArea, storage: Storage = EphemeralStorage(), numKeys: Int = 10, createKeySettings: CreateKeySettings = CreateKeySettings(), tableName: String = "CertifiedKeys", replenishThresholdFraction: Double = 0.5, refreshThresholdFraction: Double = 2.0 / 3.0, certifySingleKey: suspend (key: KeyAttestation) -> X509CertChain): CertifiedKeyManager

Creates a CertifiedKeyManager using a suspend function that certifies a single KeyAttestation at a time.

Return

a new CertifiedKeyManager instance.

Parameters

secureArea

the SecureArea to generate and hold private keys.

storage

the Storage used to persist certification metadata.

numKeys

the target number of keys to maintain in the pool, defaults to 10.

createKeySettings

settings passed when creating keys in the SecureArea.

tableName

the storage table name for persisting certified keys.

certifySingleKey

a suspend function that certifies a single KeyAttestation.