/prebuilts/jdk/jdk8/darwin-x86/sample/nio/server/ |
AcceptHandler.java | 57 private SSLContext sslContext; 60 SSLContext sslContext) { 63 this.sslContext = sslContext; 76 ChannelIO cio = (sslContext != null ? 78 sc, false /* non-blocking */, sslContext) :
|
Acceptor.java | 57 private SSLContext sslContext; 59 Acceptor(ServerSocketChannel ssc, Dispatcher d, SSLContext sslContext) { 62 this.sslContext = sslContext; 70 ChannelIO cio = (sslContext != null ? 72 sc, false /* non-blocking */, sslContext) :
|
/prebuilts/jdk/jdk8/linux-x86/sample/nio/server/ |
AcceptHandler.java | 57 private SSLContext sslContext; 60 SSLContext sslContext) { 63 this.sslContext = sslContext; 76 ChannelIO cio = (sslContext != null ? 78 sc, false /* non-blocking */, sslContext) :
|
Acceptor.java | 57 private SSLContext sslContext; 59 Acceptor(ServerSocketChannel ssc, Dispatcher d, SSLContext sslContext) { 62 this.sslContext = sslContext; 70 ChannelIO cio = (sslContext != null ? 72 sc, false /* non-blocking */, sslContext) :
|
/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/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...] |
/external/okhttp/android/test/java/com/squareup/okhttp/internal/ |
PlatformTest.java | 33 import javax.net.ssl.SSLContext; 88 SSLContext sslContext = SSLContext.getInstance("TLSv1.2"); 89 sslContext.init(null, new TrustManager[] { TRUST_NO_ONE_TRUST_MANAGER }, new SecureRandom()); 90 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); 102 SSLContext sslContext = SSLContext.getInstance("TLSv1.2"); 103 sslContext.init(null, new TrustManager[] { TRUST_NO_ONE_TRUST_MANAGER }, new SecureRandom()) [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/okhttp-tests/src/test/java/com/squareup/okhttp/ |
ConnectionReuseTest.java | 25 import javax.net.ssl.SSLContext; 37 private SSLContext sslContext = SslContextBuilder.localhost(); 228 client.setSslSocketFactory(sslContext.getSocketFactory()); 231 server.useHttps(sslContext.getSocketFactory(), false);
|
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
WebSocketCallTest.java | 33 import javax.net.ssl.SSLContext; 44 private final SSLContext sslContext = SslContextBuilder.localhost(); 176 server.useHttps(sslContext.getSocketFactory(), false); 177 client.setSslSocketFactory(sslContext.getSocketFactory()); 184 server.useHttps(sslContext.getSocketFactory(), false); 185 client.setSslSocketFactory(sslContext.getSocketFactory());
|
/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 | 221 OpenSSLContextImpl sslContext = (OpenSSLContextImpl) Conscrypt.newPreferredSSLContextSpi(); 222 sslContext.engineInit(keyManagers, trustManagers, null); 223 sslContext.engineGetClientSessionContext().setPersistentCache(mSessionCache); 224 return sslContext.engineGetSocketFactory();
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
SSLConfigurationAsserts.java | 27 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(); 52 sslContext.getProtocol(), defaultParameters.getProtocols()); 56 SSLParameters supportedParameters = sslContext.getSupportedSSLParameters(); 65 assertSSLSocketFactoryConfigSameAsSSLContext(sslContext.getSocketFactory(), sslContext); 67 sslContext.getServerSocketFactory(), sslContext) [all...] |
/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/mockwebserver/src/main/java/com/squareup/okhttp/internal/ |
SslContextBuilder.java | 31 import javax.net.ssl.SSLContext; 42 private static SSLContext localhost; // Lazily initialized. 45 public static synchronized SSLContext localhost() { 90 public SSLContext build() throws GeneralSecurityException { 114 SSLContext sslContext = SSLContext.getInstance("TLS"); 115 sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), 117 return sslContext;
|
/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();
|
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
ListProviders.java | 31 import javax.net.ssl.SSLContext; 134 SSLContext defaultContext = SSLContext.getDefault(); 137 SSLContext pskContext = SSLContext.getInstance("TLS"); 142 for (SSLContext sslContext : new SSLContext[] {defaultContext, pskContext}) { 143 SSLEngine engine = sslContext.createSSLEngine(); 145 print(sslContext.getProvider(), "SSLEngine.Supported", suite) [all...] |