/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
D | SSLContext1Test.java | 122 SSLContext sslContext; in testSSLContext01() local 124 sslContext = SSLContext.getInstance(validValues[i]); in testSSLContext01() 126 sslContext instanceof SSLContext); in testSSLContext01() 127 assertEquals("Invalid protocol", sslContext.getProtocol(), in testSSLContext01() 239 SSLContext sslContext; in testSSLContext06() local 241 sslContext = SSLContext.getInstance(validValues[i], in testSSLContext06() 244 sslContext instanceof SSLContext); in testSSLContext06() 245 assertEquals("Invalid protocol", sslContext.getProtocol(), in testSSLContext06() 247 assertEquals("Invalid provider", sslContext.getProvider(), in testSSLContext06() 305 SSLContext sslContext; in testSSLContext09() local [all …]
|
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/ |
D | SampleServer.java | 23 private final SSLContext sslContext; field in SampleServer 27 public SampleServer(SSLContext sslContext, String root, int port) { in SampleServer() argument 28 this.sslContext = sslContext; in SampleServer() 35 server.useHttps(sslContext.getSocketFactory(), false); in run() 114 SSLContext sslContext = sslContext(keystoreFile, password); in main() local 115 SampleServer server = new SampleServer(sslContext, root, port); in main() 119 private static SSLContext sslContext(String keystoreFile, String password) in sslContext() method in SampleServer 136 SSLContext sslContext = SSLContext.getInstance("TLS"); in sslContext() local 137 sslContext.init( in sslContext() 142 return sslContext; in sslContext()
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | CustomTrust.java | 41 SSLContext sslContext = sslContextForTrustedCertificates(trustedCertificatesInputStream()); in CustomTrust() local 42 client.setSslSocketFactory(sslContext.getSocketFactory()); in CustomTrust() 183 SSLContext sslContext = SSLContext.getInstance("TLS"); in sslContextForTrustedCertificates() local 184 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), in sslContextForTrustedCertificates() 186 return sslContext; in sslContextForTrustedCertificates()
|
/external/nist-sip/java/gov/nist/core/net/ |
D | SslNetworkLayer.java | 70 SSLContext sslContext; in SslNetworkLayer() local 71 sslContext = SSLContext.getInstance("TLS"); in SslNetworkLayer() 83 sslContext.init(kmFactory.getKeyManagers(), tmFactory.getTrustManagers(), secureRandom); in SslNetworkLayer() 84 sslServerSocketFactory = sslContext.getServerSocketFactory(); in SslNetworkLayer() 85 sslSocketFactory = sslContext.getSocketFactory(); in SslNetworkLayer()
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
D | WebSocketCallTest.java | 44 private final SSLContext sslContext = SslContextBuilder.localhost(); field in WebSocketCallTest 212 server.useHttps(sslContext.getSocketFactory(), false); in wssScheme() 213 client.setSslSocketFactory(sslContext.getSocketFactory()); in wssScheme() 220 server.useHttps(sslContext.getSocketFactory(), false); in httpsScheme() 221 client.setSslSocketFactory(sslContext.getSocketFactory()); in httpsScheme()
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/ |
D | SslContextBuilder.java | 101 SSLContext sslContext = SSLContext.getInstance("TLS"); in build() local 102 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), in build() 104 return sslContext; in build()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | URLConnectionTest.java | 106 private SSLContext sslContext = SslContextBuilder.localhost(); field in URLConnectionTest 504 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttps() 507 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttps() 518 server.useHttps(sslContext.getSocketFactory(), false); in inspectHandshakeThroughoutRequestLifecycle() 521 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in inspectHandshakeThroughoutRequestLifecycle() 547 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnections() 552 SSLSocketFactory clientSocketFactory = sslContext.getSocketFactory(); in connectViaHttpsReusingConnections() 569 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnectionsDifferentFactories() 574 client.client().setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttpsReusingConnectionsDifferentFactories() 589 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsWithSSLFallback() [all …]
|
D | CallTest.java | 92 private SSLContext sslContext = SslContextBuilder.localhost(); field in CallTest 767 server.useHttps(sslContext.getSocketFactory(), false); in tls() 772 client.setSslSocketFactory(sslContext.getSocketFactory()); in tls() 780 server.useHttps(sslContext.getSocketFactory(), false); in tls_Async() 785 client.setSslSocketFactory(sslContext.getSocketFactory()); in tls_Async() 825 server.useHttps(sslContext.getSocketFactory(), false); in recoverFromTlsHandshakeFailure() 840 Arrays.asList(sslContext.getSocketFactory().getSupportedCipherSuites()); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled() 846 server.useHttps(sslContext.getSocketFactory(), false); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled() 850 new RecordingSSLSocketFactory(sslContext.getSocketFactory()); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled() 870 server.useHttps(sslContext.getSocketFactory(), false); in recoverFromTlsHandshakeFailure_Async() [all …]
|
D | ConnectionPoolTest.java | 56 private SSLContext sslContext = SslContextBuilder.localhost(); field in ConnectionPoolTest 86 spdyServer.useHttps(sslContext.getSocketFactory(), false); in setUp() 97 sslContext.getSocketFactory(), new RecordingHostnameVerifier(), CertificatePinner.DEFAULT, in setUp()
|
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
D | OkHttp.java | 41 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local 42 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
|
D | UrlConnection.java | 37 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local 38 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
|
D | ApacheHttpClient.java | 45 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local 47 new Scheme("https", 443, new SSLSocketFactory(sslContext))); in prepare()
|
D | OkHttpAsync.java | 56 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local 57 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
|
D | Benchmark.java | 164 SSLContext sslContext = SslContextBuilder.localhost(); in startServer() local 165 server.useHttps(sslContext.getSocketFactory(), false); in startServer()
|
D | NettyHttpClient.java | 72 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() 73 SSLEngine engine = sslContext.createSSLEngine(); in prepare()
|
/external/apache-http/android/src/android/net/http/ |
D | HttpsConnection.java | 78 OpenSSLContextImpl sslContext = OpenSSLContextImpl.getPreferred(); in initializeEngine() local 97 sslContext.engineInit(null, trustManagers, null); in initializeEngine() 98 sslContext.engineGetClientSessionContext().setPersistentCache(cache); in initializeEngine() 101 mSslSocketFactory = sslContext.engineGetSocketFactory(); in initializeEngine()
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | CacheAdapterTest.java | 61 private SSLContext sslContext = SslContextBuilder.localhost(); field in CacheAdapterTest 117 client.setSslSocketFactory(sslContext.getSocketFactory()); in get_httpsGet() 232 client.setSslSocketFactory(sslContext.getSocketFactory()); in put_httpsGet() 259 server.useHttps(sslContext.getSocketFactory(), false /* tunnelProxy */); in configureHttpsServer()
|
D | ResponseCacheTest.java | 98 private SSLContext sslContext = SslContextBuilder.localhost(); field in ResponseCacheTest 259 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() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | ConnectionSpecSelectorTest.java | 42 private SSLContext sslContext = SslContextBuilder.localhost(); field in ConnectionSpecSelectorTest 123 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in createSocketWithEnabledProtocols()
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | DuckTypedPSKKeyManagerTest.java | 43 SSLContext sslContext = SSLContext.getDefault(); in setUp() local 44 SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory(); in setUp() 46 mSSLEngine = sslContext.createSSLEngine(); in setUp()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | OkHttpClient.java | 670 SSLContext sslContext = SSLContext.getInstance("TLS"); in getDefaultSSLSocketFactory() local 671 sslContext.init(null, null, null); in getDefaultSSLSocketFactory() 672 defaultSslSocketFactory = sslContext.getSocketFactory(); in getDefaultSSLSocketFactory()
|
/external/jetty/src/java/org/eclipse/jetty/server/ssl/ |
D | SslSelectChannelConnector.java | 493 public void setSslContext(SSLContext sslContext) in setSslContext() argument 495 _sslContextFactory.setSslContext(sslContext); in setSslContext()
|
D | SslSocketConnector.java | 568 public void setSslContext(SSLContext sslContext) in setSslContext() argument 570 _sslContextFactory.setSslContext(sslContext); in setSslContext()
|
D | SslConnector.java | 318 public abstract void setSslContext(SSLContext sslContext); in setSslContext() argument
|
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 85 private final SSLContext sslContext = SslContextBuilder.localhost(); field in UrlConnectionCacheTest 249 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() [all …]
|