com.inpaas.http.ssl.SSLTrustStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of inpaas-httpclient Show documentation
Show all versions of inpaas-httpclient Show documentation
HTTP Client for REST and SOAP Services
package com.inpaas.http.ssl;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import org.apache.http.conn.ssl.TrustStrategy;
public class SSLTrustStrategy implements TrustStrategy {
private static SSLTrustStrategy instance;
public static SSLTrustStrategy getInstance() {
if (instance == null) instance = new SSLTrustStrategy();
return instance;
}
protected SSLTrustStrategy() {
}
@Override
public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy