PkiEnvironment

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

Properties

Link copied to clipboard

Whether the current object has been destroyed and its reference is gone in the Rust side.

Functions

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

Add a PEM-encoded certificate as an intermediate certificate.

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

Add a PEM-encoded certificate as a trust anchor.

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open suspend override fun getTrustAnchors(): List<String>

Get all trust anchors as PEM-encoded certificates.

Link copied to clipboard
open suspend override 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.