public final class BasicCertificateChainCleaner extends CertificateChainCleaner
okhttp3.internal.platform.AndroidPlatform.AndroidCertificateChainCleaner.
This class includes code from Conscrypt's TrustManagerImpl and TrustedCertificateIndex.
| Constructor and Description |
|---|
BasicCertificateChainCleaner(TrustRootIndex trustRootIndex) |
| Modifier and Type | Method and Description |
|---|---|
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 in class CertificateChainCleanerSSLPeerUnverifiedExceptionCopyright © 2017. All Rights Reserved.