Skip to content

Instantly share code, notes, and snippets.

Last active May 30, 2017
What would you like to do?
Passes any host name verification
* Passes any host name verification.
private class NoHostnameVerifier implements HostnameVerifier {
public boolean verify(final String hostname, final SSLSession session) {
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment