|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface X509HostnameVerifier
Interface for checking if a hostname matches the names stored inside the
server's X.509 certificate. This interface extends
HostnameVerifier
, but it is recommended to use
methods added by X509HostnameVerifier.
Method Summary | |
---|---|
void |
verify(java.lang.String host,
javax.net.ssl.SSLSocket ssl)
Verifies that the host name is an acceptable match with the server's authentication scheme based on the given SSLSocket . |
void |
verify(java.lang.String host,
java.lang.String[] cns,
java.lang.String[] subjectAlts)
Checks to see if the supplied hostname matches any of the supplied CNs or "DNS" Subject-Alts. |
void |
verify(java.lang.String host,
java.security.cert.X509Certificate cert)
Verifies that the host name is an acceptable match with the server's authentication scheme based on the given X509Certificate . |
Methods inherited from interface javax.net.ssl.HostnameVerifier |
---|
verify |
Method Detail |
---|
void verify(java.lang.String host, javax.net.ssl.SSLSocket ssl) throws java.io.IOException
SSLSocket
.
host
- the host.ssl
- the SSL socket.
java.io.IOException
- if an I/O error occurs or the verification process
fails.void verify(java.lang.String host, java.security.cert.X509Certificate cert) throws javax.net.ssl.SSLException
X509Certificate
.
host
- the host.cert
- the certificate.
javax.net.ssl.SSLException
- if the verification process fails.void verify(java.lang.String host, java.lang.String[] cns, java.lang.String[] subjectAlts) throws javax.net.ssl.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.
javax.net.ssl.SSLException
- if the verification process fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |