/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestTrustManager.java | 20 import javax.net.ssl.TrustManager; 37 private final X509TrustManager trustManager; 39 public static TrustManager[] wrap(TrustManager[] trustManagers) { 40 TrustManager[] result = trustManagers.clone(); 47 public static TrustManager wrap(TrustManager trustManager) { 48 if (!(trustManager instanceof X509TrustManager)) { 49 return trustManager; [all...] |
TestSSLContext.java | 35 import javax.net.ssl.TrustManager; 171 TrustManager clientTrustManagers, 172 TrustManager serverTrustManagers, 198 * certificate chain from the given KeyStore and a TrustManager 204 final TrustManager[] trustManagers) 248 public static void assertServerCertificateChain(X509TrustManager trustManager, 252 trustManager.checkServerTrusted(chain, chain[0].getPublicKey().getAlgorithm()); 255 public static void assertClientCertificateChain(X509TrustManager trustManager, 259 trustManager.checkClientTrusted(chain, chain[0].getPublicKey().getAlgorithm());
|
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/ |
TrustManagerImplTest.java | 22 import javax.net.ssl.TrustManager; 46 assertValid(chain3, trustManager(root)); 47 assertValid(chain2, trustManager(root)); 48 assertInvalid(chain1, trustManager(root)); 49 assertValid(chain3, trustManager(intermediate)); 50 assertValid(chain2, trustManager(intermediate)); 51 assertValid(chain1, trustManager(intermediate)); 52 assertValid(chain3, trustManager(server)); 53 assertValid(chain2, trustManager(server)); 54 assertValid(chain1, trustManager(server)) [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
TrustManagerFactoryTest.java | 32 import javax.net.ssl.TrustManager; 128 TrustManager[] trustManagers = tmf.getTrustManagers(); 131 for (TrustManager trustManager : trustManagers) { 132 assertNotNull(trustManager); 133 if (trustManager instanceof X509TrustManager) { 134 test_X509TrustManager((X509TrustManager) trustManager); 231 TrustManager[] trustManagers = tmf.getTrustManagers(); 232 for (TrustManager trustManager : trustManagers) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
SSLParametersImpl.java | 29 import javax.net.ssl.TrustManager; 62 private X509TrustManager trustManager; 95 * See {@link javax.net.ssl.SSLContext#init(KeyManager[],TrustManager[], 98 protected SSLParametersImpl(KeyManager[] kms, TrustManager[] tms, 119 // initialize trustManager 121 trustManager = getDefaultTrustManager(); 123 trustManager = findX509TrustManager(tms); 125 if (trustManager == null) { 186 return trustManager; 407 TrustManager[] tms = tmf.getTrustManagers() [all...] |
OpenSSLSocketImpl.java | 382 X509TrustManager trustManager = sslParameters.getTrustManager(); 383 X509Certificate[] issuers = trustManager.getAcceptedIssuers(); [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
HandshakeCompletedEventTest.java | 39 import javax.net.ssl.TrustManager; 200 // TrustManager 391 private TestTrustManager trustManager; 406 trustManager = new TestTrustManager(); 412 TrustManager[] trustManagers = new TrustManager[] { trustManager }; 463 return trustManager.getChain(); 475 private TestTrustManager trustManager; 487 trustManager = new TestTrustManager() [all...] |
SSLSessionTest.java | 37 import javax.net.ssl.TrustManager; 480 private TestTrustManager trustManager; 497 trustManager = new TestTrustManager(); 504 TrustManager[] trustManagers = new TrustManager[] { trustManager }; 549 return trustManager.getChain(); 564 private TestTrustManager trustManager; 578 trustManager = new TestTrustManager(); 585 TrustManager[] trustManagers = new TrustManager[] { trustManager } [all...] |
SSLSocketTest.java | 36 import javax.net.ssl.TrustManager; 526 private TestTrustManager trustManager; 540 trustManager = new TestTrustManager(); 546 TrustManager[] trustManagers = new TrustManager[] { trustManager }; 589 return trustManager.getChain();
|
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 61 import javax.net.ssl.TrustManager; 100 public final TrustManager[] trustManagers; 102 public final TestTrustManager trustManager; 111 this.trustManager = (TestTrustManager)trustManagers[0]; 125 public static TrustManager[] createTrustManagers(final KeyStore keyStore) { [all...] |
/cts/tests/src/android/webkit/cts/ |
CtsTestServer.java | 226 CtsTrustManager trustManager = new CtsTrustManager(); 227 context.init(null, new CtsTrustManager[] {trustManager}, null); [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
SSLSocketTest.java | 52 import javax.net.ssl.TrustManager; 582 * Implements basically a dummy TrustManager. It stores the certificate 628 private TestTrustManager trustManager; 643 trustManager = new TestTrustManager(); 650 TrustManager[] trustManagers = new TrustManager[] { 651 trustManager }; 696 return trustManager.getChain(); 707 private TestTrustManager trustManager; 719 trustManager = new TestTrustManager(); [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
URLConnectionTest.java | 66 import javax.net.ssl.TrustManager; [all...] |
/prebuilt/common/http-client/ |
httpclient-4.1.1.jar | |
/prebuilt/sdk/14/ |
android.jar | |