/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CustomTrust.java | 32 import javax.net.ssl.SSLContext; 41 SSLContext sslContext = sslContextForTrustedCertificates(trustedCertificatesInputStream()); 42 client.setSslSocketFactory(sslContext.getSocketFactory()); 159 public SSLContext sslContextForTrustedCertificates(InputStream in) { 183 SSLContext sslContext = SSLContext.getInstance("TLS"); 184 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), 186 return sslContext; [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SSLSocketBenchmark.java | 28 import javax.net.ssl.SSLContext; 76 SSLContext sslContext = SSLContext.getInstance("SSL"); 77 sslContext.init(null, null, null); 78 this.sf = sslContext.getSocketFactory();
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
SSLContext1Test.java | 32 import javax.net.ssl.SSLContext; 50 * Tests for <code>SSLContext</code> class constructors and methods. 55 private static String srvSSLContext = "SSLContext"; 69 private static final String NotSupportedMsg = "There is no suitable provider for SSLContext"; 95 protected SSLContext[] createSSLCon() { 100 SSLContext[] sslC = new SSLContext[3]; 102 sslC[0] = SSLContext.getInstance(defaultProtocol); 103 sslC[1] = SSLContext.getInstance(defaultProtocol, defaultProvider); 104 sslC[2] = SSLContext.getInstance(defaultProtocol [all...] |
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
OkHttp.java | 26 import javax.net.ssl.SSLContext; 41 SSLContext sslContext = SslContextBuilder.localhost(); 42 SSLSocketFactory socketFactory = sslContext.getSocketFactory();
|
UrlConnection.java | 27 import javax.net.ssl.SSLContext; 37 SSLContext sslContext = SslContextBuilder.localhost(); 38 SSLSocketFactory socketFactory = sslContext.getSocketFactory();
|
ApacheHttpClient.java | 24 import javax.net.ssl.SSLContext; 45 SSLContext sslContext = SslContextBuilder.localhost(); 47 new Scheme("https", 443, new SSLSocketFactory(sslContext)));
|
OkHttpAsync.java | 32 import javax.net.ssl.SSLContext; 56 SSLContext sslContext = SslContextBuilder.localhost(); 57 SSLSocketFactory socketFactory = sslContext.getSocketFactory();
|
Benchmark.java | 36 import javax.net.ssl.SSLContext; 164 SSLContext sslContext = SslContextBuilder.localhost(); 165 server.useHttps(sslContext.getSocketFactory(), false);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLContext1Test.java | 32 import javax.net.ssl.SSLContext; 47 * Tests for <code>SSLContext</code> class constructors and methods. 52 private static String srvSSLContext = "SSLContext"; 74 protected SSLContext[] createSSLCon() { 79 SSLContext[] sslC = new SSLContext[3]; 81 sslC[0] = SSLContext.getInstance(defaultProtocol); 82 sslC[1] = SSLContext.getInstance(defaultProtocol, defaultProvider); 83 sslC[2] = SSLContext.getInstance(defaultProtocol, 93 * Test for <code>SSLContext</code> constructor Assertion: return [all...] |
SSLServerSocketTest.java | 33 import javax.net.ssl.SSLContext; 409 SSLContext context = SSLContext.getInstance("TLS"); 419 SSLContext sslContext = SSLContext.getInstance("TLS"); 420 sslContext.init(keyManagers, null, null); 422 sslContext.getServerSocketFactory().createServerSocket().close(); 426 sslContext.init(keyManagers, null, new SecureRandom()); 428 sslContext.getServerSocketFactory().createServerSocket().close() [all...] |
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
CacheAdapterTest.java | 40 import javax.net.ssl.SSLContext; 61 private SSLContext sslContext = SslContextBuilder.localhost(); 117 client.setSslSocketFactory(sslContext.getSocketFactory()); 232 client.setSslSocketFactory(sslContext.getSocketFactory()); 259 server.useHttps(sslContext.getSocketFactory(), false /* tunnelProxy */);
|
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/ |
SampleServer.java | 17 import javax.net.ssl.SSLContext; 23 private final SSLContext sslContext; 27 public SampleServer(SSLContext sslContext, String root, int port) { 28 this.sslContext = sslContext; 35 server.useHttps(sslContext.getSocketFactory(), false); 114 SSLContext sslContext = sslContext(keystoreFile, password) [all...] |
/frameworks/base/core/java/android/net/ |
SSLCertificateSocketFactory.java | 213 OpenSSLContextImpl sslContext = OpenSSLContextImpl.getPreferred(); 214 sslContext.engineInit(keyManagers, trustManagers, null); 215 sslContext.engineGetClientSessionContext().setPersistentCache(mSessionCache); 216 return sslContext.engineGetSocketFactory();
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
SSLConfigurationAsserts.java | 26 import javax.net.ssl.SSLContext; 43 * Asserts that the provided {@link SSLContext} has the expected default configuration, and that 48 public static void assertSSLContextDefaultConfiguration(SSLContext sslContext) 50 SSLParameters defaultParameters = sslContext.getDefaultSSLParameters(); 51 StandardNames.assertSSLContextEnabledProtocols(sslContext.getProtocol(), 57 SSLParameters supportedParameters = sslContext.getSupportedSSLParameters(); 68 assertSSLSocketFactoryConfigSameAsSSLContext(sslContext.getSocketFactory(), sslContext); 69 assertSSLServerSocketFactoryConfigSameAsSSLContext(sslContext.getServerSocketFactory() [all...] |
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
SecureWebServer.java | 29 import javax.net.ssl.SSLContext; 60 SSLContext sslContext = SSLContext.getInstance("TLS"); 75 sslContext.init(kmf.getKeyManagers(), null, null); 78 sssf = sslContext.getServerSocketFactory();
|
/external/nist-sip/java/gov/nist/core/net/ |
SslNetworkLayer.java | 42 import javax.net.ssl.SSLContext;
70 SSLContext sslContext;
71 sslContext = SSLContext.getInstance("TLS");
83 sslContext.init(kmFactory.getKeyManagers(), tmFactory.getTrustManagers(), secureRandom);
84 sslServerSocketFactory = sslContext.getServerSocketFactory();
85 sslSocketFactory = sslContext.getSocketFactory();
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
ConnectionSpecSelectorTest.java | 25 import javax.net.ssl.SSLContext; 42 private SSLContext sslContext = SslContextBuilder.localhost(); 123 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket();
|
/external/apache-http/android/src/android/net/http/ |
HttpsConnection.java | 78 OpenSSLContextImpl sslContext = OpenSSLContextImpl.getPreferred(); 97 sslContext.engineInit(null, trustManagers, null); 98 sslContext.engineGetClientSessionContext().setPersistentCache(cache); 101 mSslSocketFactory = sslContext.engineGetSocketFactory();
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
OkHttpClient.java | 41 import javax.net.ssl.SSLContext; 670 SSLContext sslContext = SSLContext.getInstance("TLS"); 671 sslContext.init(null, null, null); 672 defaultSslSocketFactory = sslContext.getSocketFactory();
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
WebSocketCallTest.java | 31 import javax.net.ssl.SSLContext; 44 private final SSLContext sslContext = SslContextBuilder.localhost(); 212 server.useHttps(sslContext.getSocketFactory(), false); 213 client.setSslSocketFactory(sslContext.getSocketFactory()); 220 server.useHttps(sslContext.getSocketFactory(), false); 221 client.setSslSocketFactory(sslContext.getSocketFactory());
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLContextTest.java | 39 import javax.net.ssl.SSLContext; 56 SSLContext sslContext = SSLContext.getDefault(); 57 assertNotNull(sslContext); 59 sslContext.init(null, null, null); 66 SSLContext.setDefault(null); 70 SSLContext defaultContext = SSLContext.getDefault(); 72 SSLContext oldContext = SSLContext.getDefault() [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
OpenSSLEarlyCCSTest.java | 51 import javax.net.ssl.SSLContext; 234 SSLContext sslContext = SSLContext.getInstance("TLS"); 235 sslContext.init( 239 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); 275 SSLContext sslContext = SSLContext.getInstance("TLS"); 276 sslContext.init [all...] |
/external/conscrypt/src/test/java/org/conscrypt/ |
DuckTypedPSKKeyManagerTest.java | 31 import javax.net.ssl.SSLContext; 43 SSLContext sslContext = SSLContext.getDefault(); 44 SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory(); 46 mSSLEngine = sslContext.createSSLEngine();
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/ |
SslContextBuilder.java | 34 import javax.net.ssl.SSLContext; 53 private static SSLContext localhost; // Lazily initialized. 68 public static synchronized SSLContext localhost() { 81 public SSLContext build() throws GeneralSecurityException { 101 SSLContext sslContext = SSLContext.getInstance("TLS"); 102 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), 104 return sslContext;
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
ConnectionPoolTest.java | 33 import javax.net.ssl.SSLContext; 56 private SSLContext sslContext = SslContextBuilder.localhost(); 86 spdyServer.useHttps(sslContext.getSocketFactory(), false); 97 sslContext.getSocketFactory(), new RecordingHostnameVerifier(), CertificatePinner.DEFAULT,
|