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

panda.net.ssl.CheckServerX509TrustManager Maven / Gradle / Ivy

Go to download

Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.

There is a newer version: 1.8.0
Show newest version
package panda.net.ssl;

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

import javax.net.ssl.X509TrustManager;

public class CheckServerX509TrustManager extends TrustedX509TrustManager {
	public static final X509TrustManager INSTANCE = new CheckServerX509TrustManager();

	@Override
	public void checkServerTrusted(X509Certificate[] certificates, String authType) throws CertificateException {
		for (X509Certificate certificate : certificates) {
			certificate.checkValidity();
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy