Deprecated
(4.4) Use javax..
javax.net.ssl.HostnameVerifier , but it is recommended to use
methods added by X509HostnameVerifier.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | verify(String
the host. host, X509Certificate the certificate. cert)Verifies that the host name is an acceptable match with the server's
authentication scheme based on the given |
| public void | verify(String
The hostname to verify. host, String[] CN fields, in order, as extracted from the X.509
certificate. cns, String[] Subject-Alt fields of type 2 ("DNS"), as extracted
from the X.509 certificate. subjectAlts)Checks to see if the supplied hostname matches any of the supplied CNs or "DNS" Subject-Alts. |
| verify | back to summary |
|---|---|
| public void verify(String host, SSLSocket ssl) throws IOException Verifies that the host name is an acceptable match with the server's
authentication scheme based on the given
| |
| verify | back to summary |
|---|---|
| public void verify(String host, X509Certificate cert) throws SSLException Verifies that the host name is an acceptable match with the server's
authentication scheme based on the given
| |
| verify | back to summary |
|---|---|
| public void verify(String host, String[] cns, String[] subjectAlts) throws SSLException Checks to see if the supplied hostname matches any of the supplied CNs or "DNS" Subject-Alts. Most implementations only look at the first CN, and ignore any additional CNs. Most implementations do look at all of the "DNS" Subject-Alts. The CNs or Subject-Alts may contain wildcards according to RFC 2818.
| |