类 CertificateChainCleaner
java.lang.Object
com.lark.oapi.okhttp.internal.tls.CertificateChainCleaner
- 直接已知子类:
BasicCertificateChainCleaner
Computes the effective certificate chain from the raw array returned by Java's built in TLS APIs.
Cleaning a chain returns a list of certificates where the first element is
chain[0], each
certificate is signed by the certificate that follows, and the last certificate is a trusted CA
certificate.
Use of the chain cleaner is necessary to omit unexpected certificates that aren't relevant to the TLS handshake and to extract the trusted CA certificate for the benefit of certificate pinning.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract List<Certificate> clean(List<Certificate> chain, String hostname) static CertificateChainCleanerget(X509Certificate... caCerts) static CertificateChainCleanerget(X509TrustManager trustManager)
-
构造器详细资料
-
CertificateChainCleaner
public CertificateChainCleaner()
-
-
方法详细资料
-
get
-
get
-
clean
public abstract List<Certificate> clean(List<Certificate> chain, String hostname) throws SSLPeerUnverifiedException
-