org.equanda.util.security
Class SslUtil.AllowAllHostnameVerifier

java.lang.Object
  extended by 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.


Constructor Summary
SslUtil.AllowAllHostnameVerifier()
           
 
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
 

Constructor Detail

SslUtil.AllowAllHostnameVerifier

public SslUtil.AllowAllHostnameVerifier()
Method Detail

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.