org.bigml.binding.utils.MockX509TrustManager Maven / Gradle / Ivy
package org.bigml.binding.utils;
import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
/**
* A trust manager that does not validate certificate chains
*/
public class MockX509TrustManager implements X509TrustManager {
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {
}
public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException {
}
public X509Certificate[] getAcceptedIssuers() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy