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

panda.net.ssl.HostnameVerifiers 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 javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;

public class HostnameVerifiers {
	private static final HostnameVerifier TRUST = new TrustHostnameVerifier();

	private static class TrustHostnameVerifier implements HostnameVerifier {
		public boolean verify(String host, SSLSession ses) {
			return true;
		}
	}
	
	public static HostnameVerifier trustHostnameVerifier() {
		return TRUST;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy