nbi.xmlsec
Class PermitAllHostNameVerifier

java.lang.Object
  extended bynbi.xmlsec.PermitAllHostNameVerifier
All Implemented Interfaces:
HostnameVerifier

public class PermitAllHostNameVerifier
extends Object
implements HostnameVerifier

Implements the HostNameVerifier interface to permit connections to all hosts. I.e., the verify(String, SSLSession) method always returns true.

Since:
Version:
$Revision: 1.2 $
Author:
Lutz Suhrbier

Constructor Summary
PermitAllHostNameVerifier()
          Default constructor
 
Method Summary
 boolean verify(String arg0, SSLSession arg1)
          Permits all hosts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermitAllHostNameVerifier

public PermitAllHostNameVerifier()
Default constructor

Method Detail

verify

public boolean verify(String arg0,
                      SSLSession arg1)
Permits all hosts.

Specified by:
verify in interface HostnameVerifier
Parameters:
arg0 - Not inspected
arg1 - Not inspected
Returns:
Always returns true.
See Also:
HostnameVerifier.verify(java.lang.String, javax.net.ssl.SSLSession)


Copyright © 2006 Lutz Suhrbier, Freie Universität Berlin. All Rights Reserved.