All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.slink.http.internals.ssl.kt Maven / Gradle / Ivy

package io.slink.http.internals

import java.security.cert.CertificateException
import javax.net.ssl.TrustManager
import javax.net.ssl.X509TrustManager

internal val trustAllCerts = arrayOf(object : X509TrustManager {
    override fun getAcceptedIssuers(): Array = emptyArray()

    @Throws(CertificateException::class)
    override fun checkClientTrusted(chain: Array, authType: String) = Unit

    @Throws(CertificateException::class)
    override fun checkServerTrusted(chain: Array, authType: String) = Unit
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy