Home
last modified time | relevance | path

Searched refs:trustManager (Results 1 – 7 of 7) sorted by relevance

/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestTrustManager.java40 private final X509TrustManager trustManager; field in TestTrustManager
51 public static TrustManager wrap(TrustManager trustManager) { in wrap() argument
52 if (trustManager instanceof X509ExtendedTrustManager) { in wrap()
53 return new TestTrustManager((X509ExtendedTrustManager) trustManager); in wrap()
54 } else if (trustManager instanceof X509TrustManager) { in wrap()
55 return new TestTrustManager((X509TrustManager) trustManager); in wrap()
57 return trustManager; in wrap()
60 public TestTrustManager(X509ExtendedTrustManager trustManager) { in TestTrustManager() argument
61 out.println("TestTrustManager.<init> extendedTrustManager=" + trustManager); in TestTrustManager()
62 this.extendedTrustManager = trustManager; in TestTrustManager()
[all …]
DTestSSLContext.java363 public static void assertServerCertificateChain(X509TrustManager trustManager, in assertServerCertificateChain() argument
367 trustManager.checkServerTrusted(chain, chain[0].getPublicKey().getAlgorithm()); in assertServerCertificateChain()
370 public static void assertClientCertificateChain(X509TrustManager trustManager, in assertClientCertificateChain() argument
374 trustManager.checkClientTrusted(chain, chain[0].getPublicKey().getAlgorithm()); in assertClientCertificateChain()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DHandshakeCompletedEventTest.java387 private TestTrustManager trustManager; field in HandshakeCompletedEventTest.TestServer
402 trustManager = new TestTrustManager(); in TestServer()
405 TrustManager[] trustManagers = new TrustManager[] { trustManager }; in TestServer()
456 return trustManager.getChain(); in getChain()
468 private TestTrustManager trustManager; field in HandshakeCompletedEventTest.TestClient
480 trustManager = new TestTrustManager(); in TestClient()
486 TrustManager[] trustManagers = new TrustManager[] { trustManager }; in run()
526 return trustManager.getChain(); in getChain()
DSSLSessionTest.java460 private TestTrustManager trustManager; field in SSLSessionTest.TestServer
477 trustManager = new TestTrustManager(); in TestServer()
481 TrustManager[] trustManagers = new TrustManager[] { trustManager }; in TestServer()
528 return trustManager.getChain(); in getChain()
543 private TestTrustManager trustManager; field in SSLSessionTest.TestClient
557 trustManager = new TestTrustManager(); in TestClient()
564 TrustManager[] trustManagers = new TrustManager[] { trustManager }; in run()
596 return trustManager.getChain(); in getChain()
DSSLSocketTest.java520 private TestTrustManager trustManager; field in SSLSocketTest.TestServer
534 trustManager = new TestTrustManager(); in TestServer()
540 TrustManager[] trustManagers = new TrustManager[] { trustManager }; in run()
583 return trustManager.getChain(); in getChain()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java166 public final TestTrustManager trustManager; field in TestKeyStore
174 this.trustManager = (TestTrustManager)trustManagers[0]; in TestKeyStore()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java2262 RecordingTrustManager trustManager = new RecordingTrustManager();
2264 sc.init(null, new TrustManager[] { trustManager }, new java.security.SecureRandom());
2289 trustManager.calls);
3221 @Override public X509TrustManager trustManager(SSLSocketFactory sslSocketFactory) {
3224 @Override public TrustRootIndex trustRootIndex(X509TrustManager trustManager) {