All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.inpaas.http.ssl.SSLTrustStrategy Maven / Gradle / Ivy

There is a newer version: 0.6.10
Show newest version
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