TrustManager
A robust, thread-safe implementation of TrustManagerInterface that securely manages and persists trust points (X.509 Certificates, VICALs, and RICALs).
This manager is backed by a persistent Storage instance and uses an internal Mutex to guarantee memory consistency across highly concurrent read and write operations. It also exposes an eventFlow that external components can observe to reactively update their state whenever trust entries are added, modified, or deleted.
Parameters
the Storage interface used for persistent storage.
an identifier for the TrustManagerInterface.
an identifier used to namespace data if multiple TrustManager instances share the same storage.
Functions
Adds a signed RICAL (Reader Issuer Certificate Authority List) to the trust manager.
Adds a signed VICAL (Verified Issuer Certificate Authority List) to the trust manager.
Adds a standalone X.509 certificate to the trust manager.
Deletes a specific TrustEntry from both memory and persistent storage.
Retrieves all high-level TrustEntry items currently managed, sorted chronologically by the time they were added.
Retrieves a flattened list of all TrustPoints currently managed. This includes standalone X.509 certificates as well as individual certificates embedded within managed VICALs and RICALs.
Updates the mutable TrustMetadata associated with an existing TrustEntry.
Updates the underlying byte data of an existing RICAL entry while preserving its metadata.
Updates the underlying byte data of an existing VICAL entry while preserving its metadata.