org.equanda.util.security
Class SslUtil.AllowAllHostnameVerifier
java.lang.Object
org.equanda.util.security.SslUtil.AllowAllHostnameVerifier
- All Implemented Interfaces:
- HostnameVerifier
- Enclosing class:
- SslUtil
public static class SslUtil.AllowAllHostnameVerifier
- extends Object
- implements HostnameVerifier
This class implements a fake hostname verificator, trusting any host name.
Method Summary |
boolean |
verify(String hostname,
SSLSession session)
Always return true, indicating that the host name is an acceptable match with the server's authentication
scheme. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SslUtil.AllowAllHostnameVerifier
public SslUtil.AllowAllHostnameVerifier()
verify
public boolean verify(String hostname,
SSLSession session)
- Always return true, indicating that the host name is an acceptable match with the server's authentication
scheme.
- Specified by:
verify
in interface HostnameVerifier
- Parameters:
hostname
- the host name.session
- the SSL session used on the connection to host.
- Returns:
- the true boolean value indicating the host name is trusted.
Copyright © 2007-2009. All Rights Reserved.