Skip to content

Instantly share code, notes, and snippets.

@maplerise
Last active May 30, 2017 21:46
Show Gist options
  • Save maplerise/c01cc4364eda4990acd0e6079dc79835 to your computer and use it in GitHub Desktop.
Save maplerise/c01cc4364eda4990acd0e6079dc79835 to your computer and use it in GitHub Desktop.
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