com.ibm.jsse2
Class HostnameVerifierIgnore
- java.lang.Object
com.ibm.jsse2.HostnameVerifierIgnore
All implemented interfaces:
- public class HostnameVerifierIgnore
- extends Object
- implements HostnameVerifier
This implementation always allow such connections.
To use:
- javax.net.ssl.HttpsURLConnection setDefaultHostnameVerifier(com.ibm.jsse2.HostnameVerifierIgnore) or
-
javax.net.ssl.HttpsURLConnection.setHostnameVerifier(com.ibm.jsse2.HostnameVerifierIgnore)
Constructor Summary
Constructor and Description HostnameVerifierIgnore()
Method Summary
Modifier and Type Method and Description - boolean
verify(String hostname,SSLSession session)
Always accept the connection even when the host to connect to and the server name from the certificate mismatchMethods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
HostnameVerifierIgnore
- public HostnameVerifierIgnore()
Method Detail
verify
- public boolean verify(String hostname,
- SSLSession session)
Always accept the connection even when the host to connect to and the server name from the certificate mismatchSpecified by:verify
in interfaceHostnameVerifier
Parameters:hostname
- the host namesession
- SSLSession used on the connection to hostReturns:true always