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

devutility.internal.net.DefaultTrustManager Maven / Gradle / Ivy

There is a newer version: 1.3.8.1
Show newest version
package devutility.internal.net;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;

public class DefaultTrustManager implements X509TrustManager {
	@Override
	public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {

	}

	@Override
	public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {

	}

	@Override
	public X509Certificate[] getAcceptedIssuers() {
		return null;
	}

	public static TrustManager[] trustManagers() {
		TrustManager[] tm = { new DefaultTrustManager() };
		return tm;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy