certificateTransparencyInterceptor
fun certificateTransparencyInterceptor(block: CTConfigurationBuilder.() -> Unit = {}): Interceptor(source)
Create an OkHttp network interceptor that enforces Certificate Transparency.
Usage:
val client = OkHttpClient.Builder()
.addNetworkInterceptor(
certificateTransparencyInterceptor {
+"*.example.com"
-"internal.example.com"
failOnError = false
}
)
.build()Content copied to clipboard
Return
An Interceptor that performs CT verification.
Parameters
block
DSL configuration block.