类 BasicCertificateChainCleaner
java.lang.Object
com.lark.oapi.okhttp.internal.tls.CertificateChainCleaner
com.lark.oapi.okhttp.internal.tls.BasicCertificateChainCleaner
A certificate chain cleaner that uses a set of trusted root certificates to build the trusted
chain. This class duplicates the clean chain building performed during the TLS handshake. We
prefer other mechanisms where they exist, such as with
okhttp3.internal.platform.AndroidPlatform.AndroidCertificateChainCleaner.
This class includes code from Conscrypt's
TrustManagerImpl and TrustedCertificateIndex.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clean(List<Certificate> chain, String hostname) Returns a cleaned chain forchain.booleaninthashCode()从类继承的方法 com.lark.oapi.okhttp.internal.tls.CertificateChainCleaner
get, get
-
构造器详细资料
-
BasicCertificateChainCleaner
-
-
方法详细资料
-
clean
public List<Certificate> clean(List<Certificate> chain, String hostname) throws SSLPeerUnverifiedException Returns a cleaned chain forchain.This method throws if the complete chain to a trusted CA certificate cannot be constructed. This is unexpected unless the trust root index in this class has a different trust manager than what was used to establish
chain.- 指定者:
clean在类中CertificateChainCleaner- 抛出:
SSLPeerUnverifiedException
-
hashCode
public int hashCode() -
equals
-