org.wikibooks.en.wiki.WebObjects.Web_Services.How_to_Trust_Any_SSL_Certificate
Class _FakeHostnameVerifier
java.lang.Object
org.wikibooks.en.wiki.WebObjects.Web_Services.How_to_Trust_Any_SSL_Certificate._FakeHostnameVerifier
- All Implemented Interfaces:
- com.sun.net.ssl.HostnameVerifier
Deprecated. see FakeHostnameVerifier
.
public class _FakeHostnameVerifier
- extends java.lang.Object
- implements com.sun.net.ssl.HostnameVerifier
This class implements a fake hostname verificator, trusting any host
name. This class uses the old deprecated API from the com.sun. ssl
package.
- Author:
- Francis Labrie
Method Summary |
boolean |
verify(java.lang.String hostname,
java.lang.String session)
Deprecated. Always return true, indicating that the host name is an acceptable
match with the server's authentication scheme. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_FakeHostnameVerifier
public _FakeHostnameVerifier()
- Deprecated.
verify
public boolean verify(java.lang.String hostname,
java.lang.String session)
- Deprecated.
- Always return true, indicating that the host name is an acceptable
match with the server's authentication scheme.
- Specified by:
verify
in interface com.sun.net.ssl.HostnameVerifier
- Parameters:
hostname
- the host name.session
- the SSL session used on the connection to host.
- Returns:
- the true boolean value indicating the host name is trusted.