com.undefinedlabs.scope.deps.okhttp3.internal.tls.CertificateChainCleaner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scope-deps Show documentation
Show all versions of scope-deps Show documentation
Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly
identify, troubleshoot and fix failed builds.
This artifact contains dependencies for Scope.
package com.undefinedlabs.scope.deps.okhttp3.internal.tls;
import com.undefinedlabs.scope.deps.okhttp3.internal.platform.Platform;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.X509TrustManager;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
import java.util.List;
public abstract class CertificateChainCleaner {
public abstract List clean(List chain, String hostname)
throws SSLPeerUnverifiedException;
public static CertificateChainCleaner get(X509TrustManager trustManager) {
return Platform.get().buildCertificateChainCleaner(trustManager);
}
public static CertificateChainCleaner get(X509Certificate... caCerts) {
return new BasicCertificateChainCleaner(TrustRootIndex.get(caCerts));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy