| com.sun.net.ssl.HostnameVerifier |
This interface is deprecated.
As of JDK 1.4, this implementation-specific class was
replaced by HostnameVerifier and
javax.net.ssl.CertificateHostnameVerifier.
HostnameVerifier provides a callback mechanism so that implementers of this interface can supply a policy for handling the case where the host to connect to and the server name from the certificate mismatch.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Verify that the hostname from the URL is an acceptable
match with the value from the common name entry in the
server certificate's distinguished name.
| |||||||||||
Verify that the hostname from the URL is an acceptable match with the value from the common name entry in the server certificate's distinguished name.
| urlHostname | the host name of the URL |
|---|---|
| certHostname | the common name entry from the certificate |