Home
last modified time | relevance | path

Searched refs:getSocketFactory (Results 1 – 25 of 67) sorted by relevance

123

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DCertificatePinnerChainValidationTest.java67 .setSslSocketFactory(clientContext.getSocketFactory()) in pinRootNotPresentInChain()
74 server.useHttps(serverSslContext.getSocketFactory(), false); in pinRootNotPresentInChain()
122 .setSslSocketFactory(clientContext.getSocketFactory()) in pinIntermediatePresentInChain()
129 server.useHttps(serverSslContext.getSocketFactory(), false); in pinIntermediatePresentInChain()
181 .setSslSocketFactory(clientContext.getSocketFactory()) in unrelatedPinnedLeafCertificateInChain()
203 server.useHttps(serverSslContext.getSocketFactory(), false); in unrelatedPinnedLeafCertificateInChain()
254 .setSslSocketFactory(clientContext.getSocketFactory()) in unrelatedPinnedIntermediateCertificateInChain()
277 server.useHttps(serverSslContext.getSocketFactory(), false); in unrelatedPinnedIntermediateCertificateInChain()
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DOpenJdkEndpointFactory.java57 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newJdkFactories()
58 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newJdkFactories()
67 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
68 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newConscryptFactories()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java196 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake()
254 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
266 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
290 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure()
325 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore()
359 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate()
382 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener()
490 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener_RuntimeException()
521 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getUseClientMode()
568 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_setUseClientMode()
[all …]
DSSLSocketTest.java169 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect()
264 SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS12()
298 SSLSocketFactory sf = context.getSocketFactory(); in test_SSLSocket_setEnabledCipherSuites_TLS13()
398 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower()
430 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate()
476 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake()
538 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake()
580 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_untrustedServer()
829 sslContext.getSocketFactory())); in getSSLSocketFactoriesToTest()
837 final SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success()
[all …]
DSSLContextTest.java189 ((SSLSocket) context.getSocketFactory().createSocket()).getEnabledProtocols()); in test_SSLContext_init_correctProtocolVersionsEnabled()
208 expectedCipherSuites, sslContext.getSocketFactory().getDefaultCipherSuites()); in assertEnabledCipherSuites()
212 SSLSocket sslSocket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in assertEnabledCipherSuites()
512 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
515 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
526 SocketFactory sf = sslContext.getSocketFactory(); in test_SSLContext_getSocketFactory()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java194 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake()
252 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
264 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
288 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure()
323 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore()
357 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate()
380 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener()
488 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener_RuntimeException()
519 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getUseClientMode()
566 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_setUseClientMode()
[all …]
DSSLSocketTest.java165 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect()
260 SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS12()
294 SSLSocketFactory sf = context.getSocketFactory(); in test_SSLSocket_setEnabledCipherSuites_TLS13()
394 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower()
426 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate()
472 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake()
530 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake()
571 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_untrustedServer()
820 sslContext.getSocketFactory())); in getSSLSocketFactoriesToTest()
828 final SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in test_SSLSocket_sendsTlsFallbackScsv_Fallback_Success()
[all …]
DSSLContextTest.java185 tlsVersion, ((SSLSocket) context.getSocketFactory().createSocket()) in test_SSLContext_init_correctProtocolVersionsEnabled()
205 expectedCipherSuites, sslContext.getSocketFactory().getDefaultCipherSuites()); in assertEnabledCipherSuites()
209 SSLSocket sslSocket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in assertEnabledCipherSuites()
500 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
503 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
514 SocketFactory sf = sslContext.getSocketFactory(); in test_SSLContext_getSocketFactory()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DURLConnectionTest.java513 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttps()
516 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttps()
527 server.useHttps(sslContext.getSocketFactory(), false); in inspectHandshakeThroughoutRequestLifecycle()
530 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in inspectHandshakeThroughoutRequestLifecycle()
556 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnections()
561 SSLSocketFactory clientSocketFactory = sslContext.getSocketFactory(); in connectViaHttpsReusingConnections()
578 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnectionsDifferentFactories()
583 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttpsReusingConnectionsDifferentFactories()
598 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsWithSSLFallback()
614 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsWithSSLFallbackFailuresRecorded()
[all …]
DCallTest.java913 server.useHttps(sslContext.getSocketFactory(), false); in recoverFromTlsHandshakeFailure()
928 Arrays.asList(sslContext.getSocketFactory().getSupportedCipherSuites()); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled()
934 server.useHttps(sslContext.getSocketFactory(), false); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled()
938 new RecordingSSLSocketFactory(sslContext.getSocketFactory()); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled()
958 server.useHttps(sslContext.getSocketFactory(), false); in recoverFromTlsHandshakeFailure_Async()
976 server.useHttps(sslContext.getSocketFactory(), false); in noRecoveryFromTlsHandshakeFailureWhenTlsFallbackIsDisabled()
2034 server.useHttps(sslContext.getSocketFactory(), true); in proxyConnectOmitsApplicationHeaders()
2041 client.setSslSocketFactory(sslContext.getSocketFactory()); in proxyConnectOmitsApplicationHeaders()
2069 server.useHttps(sslContext.getSocketFactory(), true); in proxyAuthenticateOnConnect()
2079 client.setSslSocketFactory(sslContext.getSocketFactory()); in proxyAuthenticateOnConnect()
[all …]
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java176 server.useHttps(sslContext.getSocketFactory(), false); in wssScheme()
177 client.setSslSocketFactory(sslContext.getSocketFactory()); in wssScheme()
184 server.useHttps(sslContext.getSocketFactory(), false); in httpsScheme()
185 client.setSslSocketFactory(sslContext.getSocketFactory()); in httpsScheme()
/external/apache-http/android/src/android/net/http/
DHttpsConnection.java104 mSslSocketFactory = sslContext.getSocketFactory(); in initializeEngine()
113 private synchronized static SSLSocketFactory getSocketFactory() { in getSocketFactory() method in HttpsConnection
257 sslSock = (SSLSocket) getSocketFactory().createSocket( in openConnection()
291 sslSock = (SSLSocket) getSocketFactory().createSocket( in openConnection()
/external/apache-http/src/org/apache/http/impl/conn/
DDefaultClientConnectionOperator.java132 final SocketFactory sf = schm.getSocketFactory(); in openConnection()
232 if (!(schm.getSocketFactory() instanceof LayeredSocketFactory)) { in updateSecureConnection()
238 final LayeredSocketFactory lsf = (LayeredSocketFactory) schm.getSocketFactory(); in updateSecureConnection()
/external/conscrypt/repackaged/benchmark-android/src/main/java/com/android/org/conscrypt/
DAndroidEndpointFactory.java57 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
58 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newConscryptFactories()
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/
DAndroidEndpointFactory.java55 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
56 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newConscryptFactories()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DCacheAdapterTest.java117 client.setSslSocketFactory(sslContext.getSocketFactory()); in get_httpsGet()
232 client.setSslSocketFactory(sslContext.getSocketFactory()); in put_httpsGet()
259 server.useHttps(sslContext.getSocketFactory(), false /* tunnelProxy */); in configureHttpsServer()
DResponseCacheTest.java259 server.useHttps(sslContext.getSocketFactory(), false); in secureResponseCaching()
266 c1.setSSLSocketFactory(sslContext.getSocketFactory()); in secureResponseCaching()
278 c2.setSSLSocketFactory(sslContext.getSocketFactory()); in secureResponseCaching()
337 server.useHttps(sslContext.getSocketFactory(), false); in secureResponseCachingAndRedirects()
350 client.setSslSocketFactory(sslContext.getSocketFactory()); in secureResponseCachingAndRedirects()
374 server2.useHttps(sslContext.getSocketFactory(), false); in secureResponseCachingAndProtocolRedirects()
388 client.setSslSocketFactory(sslContext.getSocketFactory()); in secureResponseCachingAndProtocolRedirects()
1449 server.useHttps(sslContext.getSocketFactory(), false); in varyAndHttps()
1457 client.setSslSocketFactory(sslContext.getSocketFactory()); in varyAndHttps()
1985 server.useHttps(sslContext.getSocketFactory(), false);
[all …]
/external/okhttp/android/src/test/java/com/squareup/okhttp/internal/
DPlatformTest.java90 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in rootTrustIndex_notNull_viaSocketFactory()
104 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in trustManager()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/
DTestUtils.java280 return getSocketFactory(JDK_PROVIDER); in getJdkSocketFactory()
324 return setUseEngineSocket(getSocketFactory(getConscryptProvider()), useEngineSocket); in getConscryptSocketFactory()
331 private static SSLSocketFactory getSocketFactory(Provider provider) { in getSocketFactory() method in TestUtils
333 return clientContext.getSocketFactory(); in getSocketFactory()
/external/conscrypt/testing/src/main/java/org/conscrypt/
DTestUtils.java278 return getSocketFactory(JDK_PROVIDER); in getJdkSocketFactory()
322 return setUseEngineSocket(getSocketFactory(getConscryptProvider()), useEngineSocket); in getConscryptSocketFactory()
329 private static SSLSocketFactory getSocketFactory(Provider provider) { in getSocketFactory() method in TestUtils
331 return clientContext.getSocketFactory(); in getSocketFactory()
/external/apache-http/src/org/apache/http/impl/client/
DDefaultHttpClient.java181 new Scheme("http", PlainSocketFactory.getSocketFactory(), 80)); in createClientConnectionManager()
183 new Scheme("https", SSLSocketFactory.getSocketFactory(), 443)); in createClientConnectionManager()
/external/apache-http/src/org/apache/http/conn/scheme/
DPlainSocketFactory.java69 public static PlainSocketFactory getSocketFactory() { in getSocketFactory() method in PlainSocketFactory
DScheme.java133 public final SocketFactory getSocketFactory() { in getSocketFactory() method in Scheme
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DOkHttp.java42 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
DUrlConnection.java38 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()

123