RicalTrustManager
class RicalTrustManager(val signedRical: SignedRical, val identifier: String = "default") : TrustManagerInterface
An implementation of TrustManagerInterface backed by a RICAL according to ISO/IEC 18013-5 Second Edition Annex F.
Parameters
signedRical
the SignedRical.
identifier
an identifier for the TrustManagerInterface.
Functions
Link copied to clipboard
Gets all trust points known to this TrustManagerInterface instance.
Link copied to clipboard
open suspend override fun verify(chain: List<X509Cert>, atTime: Instant, validateCaValidity: Boolean, docType: String?): TrustResult
Checks if an entity identifying itself via a certificate chain is trusted for a specific ISO mdoc document type.
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.