Home
last modified time | relevance | path

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

/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/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/src/test/java/com/squareup/okhttp/internal/
DSslContextBuilder.java83 SSLContext sslContext = SSLContext.getInstance("TLS"); in build() local
84 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), in build()
86 return sslContext; in build()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/
DURLConnectionTest.java99 private static final SSLContext sslContext; field in URLConnectionTest
102 sslContext = new SslContextBuilder(InetAddress.getLocalHost().getHostName()).build();
510 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttps()
514 client.setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttps()
525 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnections()
531 SSLSocketFactory clientSocketFactory = sslContext.getSocketFactory(); in connectViaHttpsReusingConnections()
548 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsReusingConnectionsDifferentFactories()
554 client.setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttpsReusingConnectionsDifferentFactories()
569 server.useHttps(sslContext.getSocketFactory(), false); in connectViaHttpsWithSSLFallback()
574 client.setSslSocketFactory(sslContext.getSocketFactory()); in connectViaHttpsWithSSLFallback()
[all …]
DHttpResponseCacheTest.java96 private static final SSLContext sslContext; field in HttpResponseCacheTest
99 sslContext = new SslContextBuilder(InetAddress.getLocalHost().getHostName()).build();
328 server.useHttps(sslContext.getSocketFactory(), false); in secureResponseCaching()
335 connection.setSSLSocketFactory(sslContext.getSocketFactory()); in secureResponseCaching()
347 connection.setSSLSocketFactory(sslContext.getSocketFactory()); in secureResponseCaching()
363 server.useHttps(sslContext.getSocketFactory(), false); in cacheReturnsInsecureResponseForSecureRequest()
371 connection1.setSSLSocketFactory(sslContext.getSocketFactory()); in cacheReturnsInsecureResponseForSecureRequest()
377 connection2.setSSLSocketFactory(sslContext.getSocketFactory()); in cacheReturnsInsecureResponseForSecureRequest()
429 server.useHttps(sslContext.getSocketFactory(), false); in secureResponseCachingAndRedirects()
441 connection1.setSSLSocketFactory(sslContext.getSocketFactory()); in secureResponseCachingAndRedirects()
[all …]
DRouteSelectorTest.java62 private static final SSLContext sslContext; field in RouteSelectorTest
70 sslContext = new SslContextBuilder(InetAddress.getLocalHost().getHostName()).build();
71 socketFactory = sslContext.getSocketFactory();
/external/smack/src/com/kenai/jbosh/
DBOSHClientConfig.java70 private final SSLContext sslContext; field in BOSHClientConfig
356 sslContext = cSSLContext; in BOSHClientConfig()
432 return sslContext; in getSSLContext()
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/
DHttpOverSpdyTest.java65 private static final SSLContext sslContext; field in HttpOverSpdyTest
68 sslContext = new SslContextBuilder(InetAddress.getLocalHost().getHostName()).build();
75 private final MockSpdyServer server = new MockSpdyServer(sslContext.getSocketFactory());
81 client.setSslSocketFactory(sslContext.getSocketFactory()); in setUp()
DSpdyServer.java157 SSLContext sslContext = new SslContextBuilder(InetAddress.getLocalHost().getHostName()).build(); in main() local
158 server.useHttps(sslContext.getSocketFactory()); in main()
/external/okhttp/src/test/java/com/squareup/okhttp/
DConnectionPoolTest.java44 private static final SSLContext sslContext; field in ConnectionPoolTest
48 sslContext = new SslContextBuilder(InetAddress.getLocalHost().getHostName()).build();
56 private final MockSpdyServer spdyServer = new MockSpdyServer(sslContext.getSocketFactory());
81 sslContext.getSocketFactory(), new RecordingHostnameVerifier(), in setUp()