public interface X509HostnameVerifier extends HostnameVerifier
HostnameVerifier, but it is recommended to use
methods added by X509HostnameVerifier.| Modifier and Type | Method and Description |
|---|---|
void |
verify(String host,
SSLSocket ssl)
Verifies that the host name is an acceptable match with the server's
authentication scheme based on the given
SSLSocket. |
void |
verify(String host,
String[] cns,
String[] subjectAlts)
Checks to see if the supplied hostname matches any of the supplied CNs
or "DNS" Subject-Alts.
|
void |
verify(String host,
X509Certificate cert)
Verifies that the host name is an acceptable match with the server's
authentication scheme based on the given
X509Certificate. |
verifyvoid verify(String host, SSLSocket ssl) throws IOException
SSLSocket.host - the host.ssl - the SSL socket.IOException - if an I/O error occurs or the verification process
fails.void verify(String host, X509Certificate cert) throws SSLException
X509Certificate.host - the host.cert - the certificate.SSLException - if the verification process fails.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 the verification process fails.Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.