TrustManagerInterface
interface TrustManagerInterface
Interface for checking if an entity is trusted.
This can be used for both issuers and relying parties.
This looks up a database of trusted entities to render verdicts, see TrustManager for an implementation that uses a local trust store, VicalTrustManager for an implementation using a VICAL, and RicalTrustManager for an implementation using a RICAL. Also see CompositeTrustManager for a way to combine multiple trust managers.
Inheritors
Properties
Link copied to clipboard
An identifier for the TrustManagerInterface instance.
Functions
Link copied to clipboard
Gets all trust points known to this TrustManagerInterface instance.
Link copied to clipboard
open suspend fun verify(chain: List<X509Cert>, atTime: Instant = Clock.System.now(), validateCaValidity: Boolean = true): TrustResult
Checks if an entity identifying itself via a certificate chain is trusted.
abstract suspend fun verify(chain: List<X509Cert>, atTime: Instant = Clock.System.now(), validateCaValidity: Boolean = true, docType: String? = null): TrustResult
Checks if an entity identifying itself via a certificate chain is trusted for a specific ISO mdoc document type.