panda.net.ssl.HostnameVerifiers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-core Show documentation
Show all versions of panda-core Show documentation
Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.
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;
}
}