URL.openConnection()
instead.
Please visit this webpage
for further details.@Deprecated public interface X509HostnameVerifier extends HostnameVerifier
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
Checks to see if the supplied hostname matches any of the supplied CNs
or "DNS" Subject-Alts.
|
void |
verify(String host,
X509Certificate cert)
Deprecated.
|
boolean verify(String host, SSLSession session)
HostnameVerifier
verify
in interface HostnameVerifier
host
- the host namesession
- SSLSession used on the connection to hostvoid verify(String host, SSLSocket ssl) throws IOException
IOException
void verify(String host, X509Certificate cert) throws SSLException
SSLException
void verify(String host, String[] cns, String[] subjectAlts) throws SSLException
cns
- CN fields, in order, as extracted from the X.509
certificate.subjectAlts
- Subject-Alt fields of type 2 ("DNS"), as extracted
from the X.509 certificate.host
- The hostname to verify.SSLException
- If verification failed.