@Immutable public abstract class AbstractVerifierHC4 extends java.lang.Object implements org.apache.http.conn.ssl.X509HostnameVerifier
X509HostnameVerifier
implementations.| Constructor and Description |
|---|
AbstractVerifierHC4() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
acceptableCountryWildcard(java.lang.String cn)
Deprecated.
(4.3.1) should not be a part of public APIs.
|
static int |
countDots(java.lang.String s)
Counts the number of dots "." in a string.
|
static java.lang.String[] |
getCNs(java.security.cert.X509Certificate cert) |
static java.lang.String[] |
getDNSSubjectAlts(java.security.cert.X509Certificate cert)
Extracts the array of SubjectAlt DNS names from an X509Certificate.
|
boolean |
verify(java.lang.String host,
javax.net.ssl.SSLSession session) |
void |
verify(java.lang.String host,
javax.net.ssl.SSLSocket ssl) |
void |
verify(java.lang.String host,
java.lang.String[] cns,
java.lang.String[] subjectAlts,
boolean strictWithSubDomains) |
void |
verify(java.lang.String host,
java.security.cert.X509Certificate cert) |
public final void verify(java.lang.String host,
javax.net.ssl.SSLSocket ssl)
throws java.io.IOException
verify in interface org.apache.http.conn.ssl.X509HostnameVerifierjava.io.IOExceptionpublic final boolean verify(java.lang.String host,
javax.net.ssl.SSLSession session)
verify in interface javax.net.ssl.HostnameVerifierverify in interface org.apache.http.conn.ssl.X509HostnameVerifierpublic final void verify(java.lang.String host,
java.security.cert.X509Certificate cert)
throws javax.net.ssl.SSLException
verify in interface org.apache.http.conn.ssl.X509HostnameVerifierjavax.net.ssl.SSLExceptionpublic final void verify(java.lang.String host,
java.lang.String[] cns,
java.lang.String[] subjectAlts,
boolean strictWithSubDomains)
throws javax.net.ssl.SSLException
javax.net.ssl.SSLException@Deprecated public static boolean acceptableCountryWildcard(java.lang.String cn)
public static java.lang.String[] getCNs(java.security.cert.X509Certificate cert)
public static java.lang.String[] getDNSSubjectAlts(java.security.cert.X509Certificate cert)
cert - X509Certificatepublic static int countDots(java.lang.String s)
s - string to count dots fromCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.