Home
last modified time | relevance | path

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

/external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
DTestTrustManager.java39 private final X509TrustManager trustManager; field in TestTrustManager
50 public static TrustManager wrap(TrustManager trustManager) { in wrap() argument
51 if (trustManager instanceof X509ExtendedTrustManager) { in wrap()
52 return new TestTrustManager((X509ExtendedTrustManager) trustManager); in wrap()
53 } else if (trustManager instanceof X509TrustManager) { in wrap()
54 return new TestTrustManager((X509TrustManager) trustManager); in wrap()
56 return trustManager; in wrap()
59 public TestTrustManager(X509ExtendedTrustManager trustManager) { in TestTrustManager() argument
60 out.println("TestTrustManager.<init> extendedTrustManager=" + trustManager); in TestTrustManager()
61 this.extendedTrustManager = trustManager; in TestTrustManager()
[all …]
DTestSSLContext.java407 X509TrustManager trustManager, Certificate[] serverChain) throws CertificateException { in assertServerCertificateChain() argument
409 trustManager.checkServerTrusted(chain, chain[0].getPublicKey().getAlgorithm()); in assertServerCertificateChain()
412 X509TrustManager trustManager, Certificate[] clientChain) throws CertificateException { in assertClientCertificateChain() argument
414 trustManager.checkClientTrusted(chain, chain[0].getPublicKey().getAlgorithm()); in assertClientCertificateChain()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/
DAndroidTrustRootIndex.java30 private final X509TrustManager trustManager; field in AndroidTrustRootIndex
34 X509TrustManager trustManager, Method findByIssuerAndSignatureMethod) { in AndroidTrustRootIndex() argument
36 this.trustManager = trustManager; in AndroidTrustRootIndex()
42 trustManager, cert); in findByIssuerAndSignature()
53 public static TrustRootIndex get(X509TrustManager trustManager) { in get() argument
57 Method method = trustManager.getClass().getDeclaredMethod( in get()
60 return new AndroidTrustRootIndex(trustManager, method); in get()
/external/conscrypt/platform/src/test/java/org/conscrypt/
DTrustManagerImplTest.java50 assertValid(chain3, trustManager(root)); in testLearnIntermediate()
51 assertValid(chain2, trustManager(root)); in testLearnIntermediate()
52 assertInvalid(chain1, trustManager(root)); in testLearnIntermediate()
53 assertValid(chain3, trustManager(intermediate)); in testLearnIntermediate()
54 assertValid(chain2, trustManager(intermediate)); in testLearnIntermediate()
55 assertValid(chain1, trustManager(intermediate)); in testLearnIntermediate()
56 assertValid(chain3, trustManager(server)); in testLearnIntermediate()
57 assertValid(chain2, trustManager(server)); in testLearnIntermediate()
58 assertValid(chain1, trustManager(server)); in testLearnIntermediate()
61 X509TrustManager tm = trustManager(root); in testLearnIntermediate()
[all …]
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DTrustManagerFactoryTest.java149 for (TrustManager trustManager : trustManagers) { in test_TrustManagerFactory_getTrustManagers()
150 assertNotNull(trustManager); in test_TrustManagerFactory_getTrustManagers()
151 if (trustManager instanceof X509TrustManager) { in test_TrustManagerFactory_getTrustManagers()
152 test_X509TrustManager((X509TrustManager) trustManager); in test_TrustManagerFactory_getTrustManagers()
251 for (TrustManager trustManager : trustManagers) { in test_TrustManagerFactory_intermediate()
252 if (!(trustManager instanceof X509TrustManager)) { in test_TrustManagerFactory_intermediate()
255 X509TrustManager tm = (X509TrustManager) trustManager; in test_TrustManagerFactory_intermediate()
274 X509TrustManager trustManager = (X509TrustManager) tmf.getTrustManagers()[0]; in test_TrustManagerFactory_keyOnly() local
275 trustManager.checkServerTrusted((X509Certificate[]) pke.getCertificateChain(), "RSA"); in test_TrustManagerFactory_keyOnly()
319 X509TrustManager trustManager = (X509TrustManager) rootCa.trustManagers[0]; in test_TrustManagerFactory_extendedKeyUsage() local
[all …]
DSSLSocketTest.java1186 X509TrustManager trustManager = new X509TrustManager() { in test_SSLSocket_TrustManagerRuntimeException() local
1202 clientContext.init(null, new TrustManager[] {trustManager}, null); in test_SSLSocket_TrustManagerRuntimeException()
/external/okhttp/android/test/java/com/squareup/okhttp/internal/
DPlatformTest.java91 X509TrustManager trustManager = platform.trustManager(socketFactory); in rootTrustIndex_notNull_viaSocketFactory() local
92 assertNotNull(platform.trustRootIndex(trustManager)); in rootTrustIndex_notNull_viaSocketFactory()
100 @Test public void trustManager() throws Exception { in trustManager() method in PlatformTest
105 X509TrustManager trustManager = platform.trustManager(socketFactory); in trustManager() local
106 assertEquals(TRUST_NO_ONE_TRUST_MANAGER, trustManager); in trustManager()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DPlatform.java88 public X509TrustManager trustManager(SSLSocketFactory sslSocketFactory) { in trustManager() method in Platform
92 public TrustRootIndex trustRootIndex(X509TrustManager trustManager) { in trustRootIndex() argument
93 return new RealTrustRootIndex(trustManager.getAcceptedIssuers()); in trustRootIndex()
243 @Override public X509TrustManager trustManager(SSLSocketFactory sslSocketFactory) { in trustManager() method in Platform.Android
265 @Override public TrustRootIndex trustRootIndex(X509TrustManager trustManager) { in trustRootIndex() argument
266 TrustRootIndex result = AndroidTrustRootIndex.get(trustManager); in trustRootIndex()
268 return super.trustRootIndex(trustManager); in trustRootIndex()
340 @Override public X509TrustManager trustManager(SSLSocketFactory sslSocketFactory) { in trustManager() method in Platform.JdkPlatform
/external/okhttp/android/main/java/com/squareup/okhttp/internal/
DPlatform.java159 public X509TrustManager trustManager(SSLSocketFactory sslSocketFactory) { in trustManager() method in Platform
175 public TrustRootIndex trustRootIndex(X509TrustManager trustManager) { in trustRootIndex() argument
176 return new RealTrustRootIndex(trustManager.getAcceptedIssuers()); in trustRootIndex()
/external/conscrypt/common/src/main/java/org/conscrypt/
DSSLParametersImpl.java541 X509TrustManager trustManager = findFirstX509TrustManager(tms); in createDefaultX509TrustManager() local
542 if (trustManager == null) { in createDefaultX509TrustManager()
547 return trustManager; in createDefaultX509TrustManager()
DSslWrapper.java454 X509TrustManager trustManager = parameters.getX509TrustManager(); in setCertificateValidation() local
455 X509Certificate[] issuers = trustManager.getAcceptedIssuers(); in setCertificateValidation()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/io/
DRealConnection.java247 X509TrustManager trustManager = Platform.get().trustManager(sslSocketFactory); in trustRootIndex() local
248 lastTrustRootIndex = Platform.get().trustRootIndex(trustManager); in trustRootIndex()
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DEngineType.java164 .trustManager((X509Certificate[]) server.getPrivateKey("RSA", "RSA") in newNettyClientContext()
/external/conscrypt/testing/src/main/java/libcore/java/security/
DTestKeyStore.java169 public final TestTrustManager trustManager; field in TestKeyStore
177 this.trustManager = (TestTrustManager) trustManagers[0]; in TestKeyStore()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DURLConnectionTest.java2203 RecordingTrustManager trustManager = new RecordingTrustManager(sslContext);
2205 sc.init(null, new TrustManager[] {trustManager}, new SecureRandom());
2221 trustManager.calls);
3404 this.delegate = Platform.get().trustManager(sslContext.getSocketFactory());