java.com.ionic.sdk.httpclient.tls.TrustAllHostnameVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ionic-sdk Show documentation
Show all versions of ionic-sdk Show documentation
The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.
package com.ionic.sdk.httpclient.tls;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;
/**
* Custom {@link HostnameVerifier}, which does no validation on server certificates it is presented. Any presented
* server certificate will be trusted. Useful for testing.
*
* Not intended for use in production applications.
*/
public class TrustAllHostnameVerifier implements HostnameVerifier {
@Override
public final boolean verify(final String hostname, final SSLSession session) {
return true;
}
}