类 CertificateChainCleaner

java.lang.Object
com.lark.oapi.okhttp.internal.tls.CertificateChainCleaner
直接已知子类:
BasicCertificateChainCleaner

public abstract class CertificateChainCleaner extends Object
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.