net.sf.basedb.util.ssl
Class AllowAnyHostNameVerifyer
java.lang.Object
net.sf.basedb.util.ssl.AllowAnyHostNameVerifyer
- All Implemented Interfaces:
- HostnameVerifier, org.apache.http.conn.ssl.X509HostnameVerifier
public class AllowAnyHostNameVerifyer
- extends Object
- implements org.apache.http.conn.ssl.X509HostnameVerifier
A simple implementation of a host name verifyer that allows all hosts.
We use it to make sure that a server certificate that has been registered
with a FileServer
always work even if the server has a different name
than what is in the certificate.
- Since:
- 2.16
- Author:
- Nicklas
- Last modified
- $Date: 2010-06-16 14:28:36 +0200 (Wed, 16 Jun 2010) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllowAnyHostNameVerifyer
public AllowAnyHostNameVerifyer()
verify
public void verify(String paramString,
SSLSocket paramSSLSocket)
throws IOException
- Specified by:
verify
in interface org.apache.http.conn.ssl.X509HostnameVerifier
- Throws:
IOException
verify
public void verify(String paramString,
X509Certificate paramX509Certificate)
throws SSLException
- Specified by:
verify
in interface org.apache.http.conn.ssl.X509HostnameVerifier
- Throws:
SSLException
verify
public void verify(String paramString,
String[] paramArrayOfString1,
String[] paramArrayOfString2)
throws SSLException
- Specified by:
verify
in interface org.apache.http.conn.ssl.X509HostnameVerifier
- Throws:
SSLException
verify
public boolean verify(String hostname,
SSLSession session)
- Specified by:
verify
in interface HostnameVerifier