PkiEnvironment

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

Constructors

Link copied to clipboard
constructor(pointer: Pointer)
constructor(noPointer: NoPointer)

This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.

Types

Link copied to clipboard
object Companion

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.

Link copied to clipboard
fun uniffiClonePointer(): Pointer