/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/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/src/test/java/com/squareup/okhttp/internal/ |
D | SslContextBuilder.java | 83 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/ |
D | URLConnectionTest.java | 99 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 …]
|
D | HttpResponseCacheTest.java | 96 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 …]
|
D | RouteSelectorTest.java | 62 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/ |
D | BOSHClientConfig.java | 70 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/ |
D | HttpOverSpdyTest.java | 65 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()
|
D | SpdyServer.java | 157 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/ |
D | ConnectionPoolTest.java | 44 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()
|