@Test public void testSetTarget() { assertEquals("s3.amazonaws.com", new ThreadLocalHostnameDelegatingTrustManager(new DisabledX509TrustManager(), "s3.amazonaws.com").getTarget()); assertEquals("cyberduck.s3.amazonaws.com", new ThreadLocalHostnameDelegatingTrustManager(new DisabledX509TrustManager(), "cyberduck.s3.amazonaws.com").getTarget()); assertEquals("cyber.duck.s3.amazonaws.com", new ThreadLocalHostnameDelegatingTrustManager(new DisabledX509TrustManager(), "cyber.duck.s3.amazonaws.com").getTarget()); }
public void setTarget(final String hostname) { this.target.set(hostname); }
ThreadLocalHostnameDelegatingTrustManager implements X509TrustManager, TrustManagerHostnameCallback { public void setTarget(final String hostname) { this.target.set(hostname); } }
ThreadLocalHostnameDelegatingTrustManager implements X509TrustManager, TrustManagerHostnameCallback { public void setTarget(final String hostname) { this.target.set(hostname); } ThreadLocalHostnameDelegatingTrustManager(final X509TrustManager delegate, final String hostname); }
ThreadLocalHostnameDelegatingTrustManager implements X509TrustManager, TrustManagerHostnameCallback { public void setTarget(final String hostname) { this.target.set(hostname); } ThreadLocalHostnameDelegatingTrustManager(final X509TrustManager delegate, final String hostname); @Override X509TrustManager init(); @Override void verify(final String hostname, final X509Certificate[] certs, final String cipher); @Override void checkClientTrusted(final X509Certificate[] certs, final String cipher); @Override void checkServerTrusted(final X509Certificate[] certs, final String cipher); @Override X509Certificate[] getAcceptedIssuers(); @Override String getTarget(); void setTarget(final String hostname); @Override String toString(); }
ThreadLocalHostnameDelegatingTrustManager implements X509TrustManager, TrustManagerHostnameCallback { public void setTarget(final String hostname) { this.target.set(hostname); } ThreadLocalHostnameDelegatingTrustManager(final X509TrustManager delegate, final String hostname); @Override X509TrustManager init(); @Override void verify(final String hostname, final X509Certificate[] certs, final String cipher); @Override void checkClientTrusted(final X509Certificate[] certs, final String cipher); @Override void checkServerTrusted(final X509Certificate[] certs, final String cipher); @Override X509Certificate[] getAcceptedIssuers(); @Override String getTarget(); void setTarget(final String hostname); @Override String toString();  }