URL.openConnection()
instead.
Please visit this webpage
for further details.@Deprecated public abstract class AbstractVerifier extends Object implements X509HostnameVerifier
X509HostnameVerifier
implementations.Constructor and Description |
---|
AbstractVerifier()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
acceptableCountryWildcard(String cn)
Deprecated.
|
static int |
countDots(String s)
Deprecated.
Counts the number of dots "." in a string.
|
static String[] |
getCNs(X509Certificate cert)
Deprecated.
|
static String[] |
getDNSSubjectAlts(X509Certificate cert)
Deprecated.
Extracts the array of SubjectAlt DNS names from an X509Certificate.
|
boolean |
verify(String host,
SSLSession session)
Deprecated.
Verify that the host name is an acceptable match with
the server's authentication scheme.
|
void |
verify(String host,
SSLSocket ssl)
Deprecated.
|
void |
verify(String host,
String[] cns,
String[] subjectAlts,
boolean strictWithSubDomains)
Deprecated.
|
void |
verify(String host,
X509Certificate cert)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
verify
public final void verify(String host, SSLSocket ssl) throws IOException
verify
in interface X509HostnameVerifier
IOException
public final boolean verify(String host, SSLSession session)
HostnameVerifier
verify
in interface HostnameVerifier
verify
in interface X509HostnameVerifier
host
- the host namesession
- SSLSession used on the connection to hostpublic final void verify(String host, X509Certificate cert) throws SSLException
verify
in interface X509HostnameVerifier
SSLException
public final void verify(String host, String[] cns, String[] subjectAlts, boolean strictWithSubDomains) throws SSLException
SSLException
public static boolean acceptableCountryWildcard(String cn)
public static String[] getCNs(X509Certificate cert)
public static String[] getDNSSubjectAlts(X509Certificate cert)
cert
- X509Certificatepublic static int countDots(String s)
s
- string to count dots from