VicalTrustManager
class VicalTrustManager(val signedVical: SignedVical, val identifier: String = "default") : TrustManagerInterface
An implementation of TrustManagerInterface backed by a VICAL according to ISO/IEC 18013-5 Annex C.
Parameters
signedVical
the SignedVical.
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 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.
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.