@Test public void testVerify_calls_wrapped_verifier_socket() throws IOException { String host = "three"; SSLSocket socket = mock(SSLSocket.class); verifier.verify(host, socket); verify(wrappedVerifier).verify(host, socket); }
@Override public boolean verify(String hostname, SSLSession session) { if (allowedHosts.contains(hostname)) { return true; } else { return verifier.verify(hostname, session); } }
SelectiveHostnameVerifier implements X509HostnameVerifier { @Override public boolean verify(String hostname, SSLSession session) { if (allowedHosts.contains(hostname)) { return true; } else { return verifier.verify(hostname, session); } } }
SelectiveHostnameVerifier implements X509HostnameVerifier { @Override public boolean verify(String hostname, SSLSession session) { if (allowedHosts.contains(hostname)) { return true; } else { return verifier.verify(hostname, session); } } SelectiveHostnameVerifier(X509HostnameVerifier verifier,
            List<String> allowedHosts); }
SelectiveHostnameVerifier implements X509HostnameVerifier { @Override public boolean verify(String hostname, SSLSession session) { if (allowedHosts.contains(hostname)) { return true; } else { return verifier.verify(hostname, session); } } SelectiveHostnameVerifier(X509HostnameVerifier verifier,
            List<String> allowedHosts); @Override boolean verify(String hostname, SSLSession session); @Override void verify(String host, SSLSocket ssl); @Override void verify(String host, X509Certificate cert); @Override void verify(String host, String[] cns, String[] subjectAlts); }
SelectiveHostnameVerifier implements X509HostnameVerifier { @Override public boolean verify(String hostname, SSLSession session) { if (allowedHosts.contains(hostname)) { return true; } else { return verifier.verify(hostname, session); } } SelectiveHostnameVerifier(X509HostnameVerifier verifier,
            List<String> allowedHosts); @Override boolean verify(String hostname, SSLSession session); @Override void verify(String host, SSLSocket ssl); @Override void verify(String host, X509Certificate cert); @Override void verify(String host, String[] cns, String[] subjectAlts);  }