CoolFace
Apppublic

Deeps-2005/java-ssl-scanner

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
hostname_verifier_true.java13 linesDownload Raw Back to sample
1 2import javax.net.ssl.*;3 4public class HostnameVerifierTrue {5    public static void main(String[] args) {6        HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {7            public boolean verify(String hostname, SSLSession session) {8                return true;9            }10        });11    }12}13