org.glassfish.loadbalancer.admin.cli.connection
Class SSLHostNameVerifier

java.lang.Object
  extended by org.glassfish.loadbalancer.admin.cli.connection.SSLHostNameVerifier
All Implemented Interfaces:
javax.net.ssl.HostnameVerifier

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

Author:
sv96363

Constructor Summary
SSLHostNameVerifier()
           
 
Method Summary
 boolean verify(java.lang.String hostname, javax.net.ssl.SSLSession session)
          matches the hostname of the Load balancer to CN attribute of the certificate obtained.
 
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)
matches the hostname of the Load balancer to CN attribute of the certificate obtained.

Specified by:
verify in interface javax.net.ssl.HostnameVerifier
Parameters:
hostname - hostname of the load balancer
session - SSL session information
Returns:
true - if the LB host name and CN attribute in the certificate matches, false otherwise


Copyright © 2012 GlassFish Community. All Rights Reserved.