org.ldaptive.ssl
Class AllowAnyHostnameVerifier

java.lang.Object
  extended by org.ldaptive.ssl.AllowAnyHostnameVerifier
All Implemented Interfaces:
HostnameVerifier, CertificateHostnameVerifier

public class AllowAnyHostnameVerifier
extends Object
implements HostnameVerifier, CertificateHostnameVerifier

Hostname verifier that returns true for any hostname. Use with caution.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
AllowAnyHostnameVerifier()
           
 
Method Summary
 boolean verify(String hostname, SSLSession session)
          
 boolean verify(String hostname, X509Certificate cert)
          Verify the supplied hostname matches the supplied certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowAnyHostnameVerifier

public AllowAnyHostnameVerifier()
Method Detail

verify

public boolean verify(String hostname,
                      SSLSession session)

Specified by:
verify in interface HostnameVerifier

verify

public boolean verify(String hostname,
                      X509Certificate cert)
Verify the supplied hostname matches the supplied certificate.

Specified by:
verify in interface CertificateHostnameVerifier
Parameters:
hostname - to verify
cert - to verify hostname against
Returns:
whether hostname is valid for the supplied certificate


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.