CTTrustManagerFactory

Factory for creating CTTrustManager instances.

Usage:

val trustManager = CTTrustManagerFactory.create {
+"*.example.com"
failOnError = true
}

val sslContext = SSLContext.getInstance("TLS").apply {
init(null, arrayOf(trustManager), null)
}

Functions

Link copied to clipboard

Create a CTTrustManager with an existing configuration.

Create a CTTrustManager that wraps the system default trust manager.