trustedRootCertificateChainValidator

fun trustedRootCertificateChainValidator(trustedRootCert: X509Cert): suspend (certificateChain: X509CertChain, atTime: Instant) -> Boolean

Creates certificate chain validator that checks if the given certificate chain can be validated using given trusted root certificate.

Return

validator which is appropriate for use with validateJwt and validateCwt functions as certificateChainValidator parameter

Parameters

trustedRootCert

trusted root certificate