-
-
Save maplerise/c01cc4364eda4990acd0e6079dc79835 to your computer and use it in GitHub Desktop.
Passes any host name verification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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