PkiEnvironmentInterface

The PKI environment used for certificate management during X509 credential acquisition.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun addIntermediateCert(certPem: String)

Add a PEM-encoded certificate as an intermediate certificate.

Link copied to clipboard
abstract suspend fun addTrustAnchor(certPem: String)

Add a PEM-encoded certificate as a trust anchor.

Link copied to clipboard
abstract suspend fun getTrustAnchors(): List<String>

Get all trust anchors as PEM-encoded certificates.

Link copied to clipboard
abstract suspend fun removeTrustAnchor(fingerprint: ByteArray)

Remove a trust anchor by providing the certificates Subject Public Key Info (SPKI) fingerprint as bytes. Trying to remove trust anchor that doesn't exist in the database will just succeed.