TrustEntryBasedTrustManager

Common interface for TrustManagerInterface implementations built on top of TrustEntry.

Inheritors

Properties

Link copied to clipboard
abstract val eventFlow: SharedFlow<Unit>

A reactive stream of events emitted whenever the underlying trust data changes. Observers can collect this flow to know when to refresh their cached UI states.

Link copied to clipboard
abstract val identifier: String

An identifier for the TrustManagerInterface instance.

Functions

Link copied to clipboard
abstract suspend fun getEntries(): List<TrustEntry>

Retrieves all TrustEntry items currently managed.

Link copied to clipboard
abstract suspend fun getTrustPoints(): List<TrustPoint>

Gets all trust points known to this TrustManagerInterface instance.

Link copied to clipboard
abstract suspend fun verify(chain: List<X509Cert>, atTime: Instant = Clock.System.now()): TrustResult

Checks if an entity identifying itself via a certificate chain is trusted.