io.soffa.foundation.commons.http.TrustAllManager Maven / Gradle / Ivy
The newest version!
package io.soffa.foundation.commons.http;
import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
public class TrustAllManager implements X509TrustManager {
@Override
public void checkClientTrusted(X509Certificate[] chain, String authType) {
// Nothing to check here
}
@Override
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
// Nothing to check here
}
@Override
public X509Certificate[] getAcceptedIssuers() {
return new X509Certificate[]{};
}
}