jcechace
11/05/2018, 12:41 PMoverride fun checkServerTrusted(chain: Array<out X509Certificate>?, authType: String?) {
try {
customTm?.checkServerTrusted(chain, authType) ?: defaultTm.checkServerTrusted(chain, authType)
} catch (e : CertificateException) {
defaultTm.checkServerTrusted(chain, authType)
}
}
maxmello
11/05/2018, 12:52 PMjcechace
11/05/2018, 12:54 PMmaxmello
11/05/2018, 1:05 PMoverride fun checkServerTrusted(chain: Array<out X509Certificate>?, authType: String?) {
fun checkCustomTm() = return try {
customTm?.checkServerTrusted(chain, authType)
} catch (e : CertificateException) {
null
}
}
checkCustomTm() ?: defaultTm.checkServerTrusted(chain, authType)
}
camkadev
11/05/2018, 9:07 PM