Skip to content

Instantly share code, notes, and snippets.

@maplerise
Last active May 30, 2017
Embed
What would you like to do?
Passes any host name verification
/**
* Passes any host name verification.
*/
private class NoHostnameVerifier implements HostnameVerifier {
@Override
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