com.oaklandsw.http
Interface HostnameVerifier


public interface HostnameVerifier

An interface to allow the acceptance of SSL connections where the hostname does not match the host on the certificate.


Method Summary
 boolean verify(java.lang.String hostName, javax.net.ssl.SSLSession session)
          Called when an SSL connection is established and the hostname on the certificate does not match the hostname to which the connection is made.
 

Method Detail

verify

public boolean verify(java.lang.String hostName,
                      javax.net.ssl.SSLSession session)
Called when an SSL connection is established and the hostname on the certificate does not match the hostname to which the connection is made.

Parameters:
hostName - the host name to which the connection was made
session - the SSLSession associated with this connection.
Returns:
true, if the connection is allowed to proceed, false if it should fail.


Copyright © 2002-2005 Oakland Software Incorporated. All Rights Reserved.