All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.com.ionic.sdk.httpclient.tls.TrustAllHostnameVerifier Maven / Gradle / Ivy

Go to download

The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.

There is a newer version: 2.9.0
Show newest version
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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy