Home
last modified time | relevance | path

Searched refs:getSocketFactory (Results 1 – 25 of 65) 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/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java171 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake()
229 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
241 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
265 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure()
300 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore()
334 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate()
357 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener()
470 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener_RuntimeException()
501 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getUseClientMode()
548 (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()
299 SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS12()
333 SSLSocketFactory sf = context.getSocketFactory(); in test_SSLSocket_setEnabledCipherSuites_TLS13()
432 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower()
463 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate()
509 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
574 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
600 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_server()
677 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_server()
720 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_untrustedServer()
[all …]
DSSLContextTest.java191 tlsVersion, ((SSLSocket) context.getSocketFactory().createSocket()) in test_SSLContext_init_correctProtocolVersionsEnabled()
211 expectedCipherSuites, sslContext.getSocketFactory().getDefaultCipherSuites()); in assertEnabledCipherSuites()
215 SSLSocket sslSocket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in assertEnabledCipherSuites()
515 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
518 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
529 SocketFactory sf = sslContext.getSocketFactory(); in test_SSLContext_getSocketFactory()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java169 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake()
227 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
239 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse()
263 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_NoEnabledCipherSuites_Failure()
298 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noKeyStore()
332 (SSLSocket) clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake_noClientCertificate()
355 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener()
468 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_HandshakeCompletedListener_RuntimeException()
499 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getUseClientMode()
546 (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()
295 SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS12()
329 SSLSocketFactory sf = context.getSocketFactory(); in test_SSLSocket_setEnabledCipherSuites_TLS13()
428 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_useLower()
459 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_noncontiguousProtocols_canNegotiate()
505 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
570 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_client()
596 (SSLSocket) referenceContext.clientContext.getSocketFactory().createSocket(); in test_SSLSocket_getHandshakeSession_duringHandshake_server()
673 clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_getHandshakeSession_duringHandshake_server()
716 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_untrustedServer()
[all …]
DSSLContextTest.java187 tlsVersion, ((SSLSocket) context.getSocketFactory().createSocket()) in test_SSLContext_init_correctProtocolVersionsEnabled()
207 expectedCipherSuites, sslContext.getSocketFactory().getDefaultCipherSuites()); in assertEnabledCipherSuites()
211 SSLSocket sslSocket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in assertEnabledCipherSuites()
502 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
505 SSLContext.getInstance(protocol).getSocketFactory(); in test_SSLContext_getSocketFactory()
516 SocketFactory sf = sslContext.getSocketFactory(); in test_SSLContext_getSocketFactory()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DURLConnectionTest.java518 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttps()
521 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttps()
532 server.useHttps(sslContext.getSocketFactory(), false); in inspectHandshakeThroughoutRequestLifecycle()
535 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in inspectHandshakeThroughoutRequestLifecycle()
561 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnections()
566 SSLSocketFactory clientSocketFactory = sslContext.getSocketFactory(); in connectViaHttpsReusingConnections()
583 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnectionsDifferentFactories()
588 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttpsReusingConnectionsDifferentFactories()
603 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsWithSSLFallback()
619 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()
2042 server.useHttps(sslContext.getSocketFactory(), true); in proxyConnectOmitsApplicationHeaders()
2049 client.setSslSocketFactory(sslContext.getSocketFactory()); in proxyConnectOmitsApplicationHeaders()
2077 server.useHttps(sslContext.getSocketFactory(), true); in proxyAuthenticateOnConnect()
2087 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/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/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/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/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/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()
/external/grpc-grpc-java/android-interop-testing/app/src/main/java/io/grpc/android/integrationtest/
DTesterOkHttpChannelBuilder.java70 return context.getSocketFactory(); in getSslSocketFactory()
/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/
DMultihomePlainSocketFactory.java73 public static MultihomePlainSocketFactory getSocketFactory() { in getSocketFactory() method in MultihomePlainSocketFactory

123