Class SSLHostNameVerifier
- java.lang.Object
-
- org.glassfish.loadbalancer.admin.cli.connection.SSLHostNameVerifier
-
- All Implemented Interfaces:
HostnameVerifier
public class SSLHostNameVerifier extends Object implements HostnameVerifier
- Author:
- sv96363
-
-
Constructor Summary
Constructors Constructor Description SSLHostNameVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
verify(String hostname, SSLSession session)
matches the hostname of the Load balancer to CN attribute of the certificate obtained.
-
-
-
Method Detail
-
verify
public boolean verify(String hostname, SSLSession session)
matches the hostname of the Load balancer to CN attribute of the certificate obtained.- Specified by:
verify
in interfaceHostnameVerifier
- Parameters:
hostname
- hostname of the load balancersession
- SSL session information- Returns:
- true - if the LB host name and CN attribute in the certificate matches, false otherwise
-
-