Sun Adapter for LDAP API

com.stc.connector.ldapadapter.appconn
Class SSLHostNameVerifier

java.lang.Object
  extended by com.stc.connector.ldapadapter.appconn.SSLHostNameVerifier
All Implemented Interfaces:
javax.net.ssl.HostnameVerifier

public class SSLHostNameVerifier
extends java.lang.Object
implements javax.net.ssl.HostnameVerifier

This class is used to set whether hostname verification has to be done during SSL handshake or not

Version:
$Revision: 1.2 $
Author:

Constructor Summary
SSLHostNameVerifier()
           
 
Method Summary
 boolean verify(java.lang.String hostname, javax.net.ssl.SSLSession session)
          Method that does verification of the hostname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLHostNameVerifier

public SSLHostNameVerifier()
Method Detail

verify

public boolean verify(java.lang.String hostname,
                      javax.net.ssl.SSLSession session)
Method that does verification of the hostname. This method actually does not do the host name verification. Always returns true. It is used when the user does not want to do hostname verification. When the user requires hostname verification, the default implementation of Sun JSSE is used which verifies the hostname.

Specified by:
verify in interface javax.net.ssl.HostnameVerifier
Parameters:
hostname - the name of the host
session - the SSL session object

Sun Adapter for LDAP API