public final class BasicCertificateChainCleaner extends CertificateChainCleaner
okhttp3.internal.platform.AndroidPlatform.AndroidCertificateChainCleaner.
This class includes code from Conscrypt's TrustManagerImpl and TrustedCertificateIndex.
| 构造器和说明 |
|---|
BasicCertificateChainCleaner(TrustRootIndex trustRootIndex) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Certificate> |
clean(List<Certificate> chain,
String hostname)
Returns a cleaned chain for
chain. |
boolean |
equals(Object other) |
int |
hashCode() |
get, getpublic BasicCertificateChainCleaner(TrustRootIndex trustRootIndex)
public List<Certificate> clean(List<Certificate> chain, String hostname) throws SSLPeerUnverifiedException
chain.
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 在类中 CertificateChainCleanerSSLPeerUnverifiedExceptionCopyright © 2024. All rights reserved.