Home
last modified time | relevance | path

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

12

/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-base/src/main/java/org/conscrypt/
DSocketType.java53 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newJdkFactories()
54 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newJdkFactories()
63 final SSLSocketFactory clientFactory = clientContext.getSocketFactory(); in newConscryptFactories()
64 final SSLSocketFactory serverFactory = serverContext.getSocketFactory(); in newConscryptFactories()
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java208 String[] cipherSuites = c.clientContext.getSocketFactory().getSupportedCipherSuites(); in test_SSLSocket_getSupportedCipherSuites_connect()
420 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake()
471 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
483 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
507 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure()
539 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore()
567 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate()
584 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener()
669 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener_RuntimeException()
689 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getUseClientMode()
[all …]
DSSLContextTest.java175 tlsVersion, ((SSLSocket) (context.getSocketFactory().createSocket())) in test_SSLContext_init_correctProtocolVersionsEnabled()
194 expectedCipherSuites, sslContext.getSocketFactory().getDefaultCipherSuites()); in assertEnabledCipherSuites()
198 SSLSocket sslSocket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in assertEnabledCipherSuites()
465 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
468 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
479 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 …]
DConnectionReuseTest.java228 client.setSslSocketFactory(sslContext.getSocketFactory()); in enableHttp2()
231 server.useHttps(sslContext.getSocketFactory(), false); in enableHttp2()
/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/conscrypt/testing/src/main/java/org/conscrypt/
DTestUtils.java130 return getSocketFactory(JDK_PROVIDER); in getJdkSocketFactory()
160 return setUseEngineSocket(getSocketFactory(getConscryptProvider()), useEngineSocket); in getConscryptSocketFactory()
167 private static SSLSocketFactory getSocketFactory(Provider provider) { in getSocketFactory() method in TestUtils
169 return clientContext.getSocketFactory(); in getSocketFactory()
/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/apache-http/android/src/android/net/http/
DHttpsConnection.java111 private synchronized static SSLSocketFactory getSocketFactory() { in getSocketFactory() method in HttpsConnection
255 sslSock = (SSLSocket) getSocketFactory().createSocket( in openConnection()
289 sslSock = (SSLSocket) getSocketFactory().createSocket( in openConnection()
/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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSSLCertificateSocketFactory.java19 return SSLSocketFactory.getSocketFactory(); in getHttpSocketFactory()
/external/okhttp/android/test/java/com/squareup/okhttp/internal/
DPlatformTest.java90 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in rootTrustIndex_notNull_viaSocketFactory()
104 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in trustManager()
/external/apache-http/src/org/apache/http/conn/scheme/
DScheme.java133 public final SocketFactory getSocketFactory() { in getSocketFactory() method in Scheme
DPlainSocketFactory.java69 public static PlainSocketFactory getSocketFactory() { in getSocketFactory() method in PlainSocketFactory
/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()
DOkHttpAsync.java57 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
/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/google-tv-pairing-protocol/java/src/com/google/polo/ssl/
DSSLSocketFactoryWrapper.java59 mFactory = sslcontext.getSocketFactory(); in SSLSocketFactoryWrapper()
/external/apache-http/src/org/apache/http/conn/
DMultihomePlainSocketFactory.java73 public static MultihomePlainSocketFactory getSocketFactory() { in getSocketFactory() method in MultihomePlainSocketFactory
/external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java131 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in create()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java249 server.useHttps(sslContext.getSocketFactory(), false); in secureResponseCaching()
255 c1.setSSLSocketFactory(sslContext.getSocketFactory()); in secureResponseCaching()
267 c2.setSSLSocketFactory(sslContext.getSocketFactory()); in secureResponseCaching()
327 server.useHttps(sslContext.getSocketFactory(), false); in secureResponseCachingAndRedirects()
337 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in secureResponseCachingAndRedirects()
363 server2.useHttps(sslContext.getSocketFactory(), false); in secureResponseCachingAndProtocolRedirects()
374 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in secureResponseCachingAndProtocolRedirects()
1393 server.useHttps(sslContext.getSocketFactory(), false); in varyAndHttps()
1401 connection1.setSSLSocketFactory(sslContext.getSocketFactory()); in varyAndHttps()
1407 connection2.setSSLSocketFactory(sslContext.getSocketFactory()); in varyAndHttps()

12