public abstract static class SSLHostnameVerifier.AbstractVerifier extends Object implements org.apache.hadoop.security.ssl.SSLHostnameVerifier
SSLHostnameVerifier.AbstractVerifier, SSLHostnameVerifier.Certificates| Modifier | Constructor and Description | 
|---|---|
protected  | 
SSLHostnameVerifier.AbstractVerifier()  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
acceptableCountryWildcard(String cn)  | 
void | 
check(String[] host,
     SSLSocket ssl)  | 
void | 
check(String[] hosts,
     String[] cns,
     String[] subjectAlts,
     boolean ie6,
     boolean strictWithSubDomains)  | 
void | 
check(String[] host,
     X509Certificate cert)  | 
void | 
check(String host,
     SSLSocket ssl)  | 
void | 
check(String host,
     String[] cns,
     String[] subjectAlts)  | 
void | 
check(String host,
     X509Certificate cert)  | 
static int | 
countDots(String s)
Counts the number of dots "." in a string. 
 | 
static boolean | 
isIP4Address(String cn)  | 
static boolean | 
isLocalhost(String host)  | 
boolean | 
verify(String host,
      SSLSession session)
The javax.net.ssl.HostnameVerifier contract. 
 | 
protected SSLHostnameVerifier.AbstractVerifier()
public boolean verify(String host, SSLSession session)
verify in interface HostnameVerifierverify in interface org.apache.hadoop.security.ssl.SSLHostnameVerifierhost - 'hostname' we used to create our socketsession - SSLSession with the remote serverpublic void check(String host, SSLSocket ssl) throws IOException
check in interface org.apache.hadoop.security.ssl.SSLHostnameVerifierIOExceptionpublic void check(String host, X509Certificate cert) throws SSLException
check in interface org.apache.hadoop.security.ssl.SSLHostnameVerifierSSLExceptionpublic void check(String host, String[] cns, String[] subjectAlts) throws SSLException
check in interface org.apache.hadoop.security.ssl.SSLHostnameVerifierSSLExceptionpublic void check(String[] host, SSLSocket ssl) throws IOException
check in interface org.apache.hadoop.security.ssl.SSLHostnameVerifierIOExceptionpublic void check(String[] host, X509Certificate cert) throws SSLException
check in interface org.apache.hadoop.security.ssl.SSLHostnameVerifierSSLExceptionpublic void check(String[] hosts, String[] cns, String[] subjectAlts, boolean ie6, boolean strictWithSubDomains) throws SSLException
SSLExceptionpublic static boolean isIP4Address(String cn)
public static boolean acceptableCountryWildcard(String cn)
public static boolean isLocalhost(String host)
public static int countDots(String s)
s - string to count dots fromCopyright © 2018 Apache Software Foundation. All Rights Reserved.