Home
last modified time | relevance | path

Searched refs:sslContext (Results 1 – 25 of 30) sorted by relevance

12

/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
DSSLContext1Test.java122 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/
DSampleServer.java23 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/
DCustomTrust.java41 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/
DSslNetworkLayer.java70 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/
DWebSocketCallTest.java44 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/
DSslContextBuilder.java101 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/
DURLConnectionTest.java106 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 …]
DCallTest.java92 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 …]
DConnectionPoolTest.java56 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/
DOkHttp.java41 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local
42 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
DUrlConnection.java37 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local
38 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
DApacheHttpClient.java45 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local
47 new Scheme("https", 443, new SSLSocketFactory(sslContext))); in prepare()
DOkHttpAsync.java56 SSLContext sslContext = SslContextBuilder.localhost(); in prepare() local
57 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in prepare()
DBenchmark.java164 SSLContext sslContext = SslContextBuilder.localhost(); in startServer() local
165 server.useHttps(sslContext.getSocketFactory(), false); in startServer()
DNettyHttpClient.java72 SSLContext sslContext = SslContextBuilder.localhost(); in prepare()
73 SSLEngine engine = sslContext.createSSLEngine(); in prepare()
/external/apache-http/android/src/android/net/http/
DHttpsConnection.java78 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/
DCacheAdapterTest.java61 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()
DResponseCacheTest.java98 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/
DConnectionSpecSelectorTest.java42 private SSLContext sslContext = SslContextBuilder.localhost(); field in ConnectionSpecSelectorTest
123 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in createSocketWithEnabledProtocols()
/external/conscrypt/src/test/java/org/conscrypt/
DDuckTypedPSKKeyManagerTest.java43 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/
DOkHttpClient.java670 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/
DSslSelectChannelConnector.java493 public void setSslContext(SSLContext sslContext) in setSslContext() argument
495 _sslContextFactory.setSslContext(sslContext); in setSslContext()
DSslSocketConnector.java568 public void setSslContext(SSLContext sslContext) in setSslContext() argument
570 _sslContextFactory.setSslContext(sslContext); in setSslContext()
DSslConnector.java318 public abstract void setSslContext(SSLContext sslContext); in setSslContext() argument
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java85 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 …]

12