uk.co.mruoc.rest.client.insecure.InsecureTrustStrategy Maven / Gradle / Ivy
package uk.co.mruoc.rest.client.insecure;
import org.apache.http.ssl.TrustStrategy;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
public class InsecureTrustStrategy implements TrustStrategy {
@Override
public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException {
return true;
}
}