Home
last modified time | relevance | path

Searched refs:SSLContext (Results 1 – 25 of 61) sorted by relevance

123

/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DSSLContextTest.java47 import javax.net.ssl.SSLContext;
70 SSLContext sslContext = SSLContext.getDefault(); in test_SSLContext_getDefault()
83 SSLContext.setDefault(null); in test_SSLContext_setDefault()
89 SSLContext defaultContext = SSLContext.getDefault(); in test_SSLContext_setDefault()
91 SSLContext oldContext = SSLContext.getDefault(); in test_SSLContext_setDefault()
93 SSLContext newContext = SSLContext.getInstance(protocol); in test_SSLContext_setDefault()
96 SSLContext.setDefault(newContext); in test_SSLContext_setDefault()
97 assertSame(newContext, SSLContext.getDefault()); in test_SSLContext_setDefault()
99 SSLContext.setDefault(defaultContext); in test_SSLContext_setDefault()
104 SSLConfigurationAsserts.assertSSLContextDefaultConfiguration(SSLContext.getDefault()); in test_SSLContext_defaultConfiguration()
[all …]
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DEngineType.java30 import javax.net.ssl.SSLContext;
41 private final SSLContext clientContext = initClientSslContext(newContext());
42 private final SSLContext serverContext = initServerSslContext(newContext());
54 private SSLContext newContext() { in newContext()
56 return SSLContext.getInstance(PROTOCOL_TLS_V1_2); in newContext()
63 private final SSLContext clientContext = initClientSslContext(newContext());
64 private final SSLContext serverContext = initServerSslContext(newContext());
76 private SSLContext newContext() { in newContext()
78 return SSLContext.getInstance(PROTOCOL_TLS_V1_2, new OpenSSLProvider()); in newContext()
85 private final SSLContext clientContext = initClientSslContext(newContext());
[all …]
DSocketType.java5 import javax.net.ssl.SSLContext;
51 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newJdkFactories()
52 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newJdkFactories()
61 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories()
62 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newConscryptFactories()
/external/conscrypt/testing/src/main/java/org/conscrypt/
DTestUtils.java32 import javax.net.ssl.SSLContext;
168 SSLContext clientContext = initClientSslContext(newContext(provider)); in getSocketFactory()
173 SSLContext serverContext = initServerSslContext(newContext(provider)); in getServerSocketFactory()
177 private static SSLContext newContext(Provider provider) { in newContext()
179 return SSLContext.getInstance("TLS", provider); in newContext()
226 static SSLContext newClientSslContext(Provider provider) { in newClientSslContext()
227 SSLContext context = newContext(provider); in newClientSslContext()
231 static SSLContext newServerSslContext(Provider provider) { in newServerSslContext()
232 SSLContext context = newContext(provider); in newServerSslContext()
239 public static SSLContext initClientSslContext(SSLContext context) { in initClientSslContext()
[all …]
/external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
DSSLConfigurationAsserts.java27 import javax.net.ssl.SSLContext;
48 public static void assertSSLContextDefaultConfiguration(SSLContext sslContext) in assertSSLContextDefaultConfiguration()
78 assertSSLSocketFactoryConfigSameAsSSLContext(sslSocketFactory, SSLContext.getDefault()); in assertSSLSocketFactoryDefaultConfiguration()
86 SSLSocketFactory sslSocketFactory, SSLContext sslContext) throws IOException { in assertSSLSocketFactoryConfigSameAsSSLContext()
103 assertSSLSocketConfigSameAsSSLContext(sslSocket, SSLContext.getDefault()); in assertSSLSocketDefaultConfiguration()
109 SSLSocket sslSocket, SSLContext sslContext) { in assertSSLSocketConfigSameAsSSLContext()
129 sslServerSocketFactory, SSLContext.getDefault()); in assertSSLServerSocketFactoryDefaultConfiguration()
138 SSLServerSocketFactory sslServerSocketFactory, SSLContext sslContext) in assertSSLServerSocketFactoryConfigSameAsSSLContext()
158 assertSSLServerSocketConfigSameAsSSLContext(sslServerSocket, SSLContext.getDefault()); in assertSSLServerSocketDefaultConfiguration()
166 SSLServerSocket sslServerSocket, SSLContext sslContext) { in assertSSLServerSocketConfigSameAsSSLContext()
[all …]
DTestSSLContext.java38 import javax.net.ssl.SSLContext;
81 public final SSLContext clientContext;
82 public final SSLContext serverContext;
174 X509ExtendedTrustManager serverTrustManager, SSLContext clientContext, in TestSSLContext()
175 SSLContext serverContext, SSLServerSocket serverSocket, InetAddress host, int port) { in TestSSLContext()
211 private SSLContext clientContext;
212 private SSLContext serverContext;
261 public Builder clientContext(SSLContext clientContext) { in clientContext()
266 public Builder serverContext(SSLContext serverContext) { in serverContext()
286 SSLContext clientContext = this.clientContext; in build()
[all …]
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/
DSslContextBuilder.java31 import javax.net.ssl.SSLContext;
42 private static SSLContext localhost; // Lazily initialized.
45 public static synchronized SSLContext localhost() { in localhost()
90 public SSLContext build() throws GeneralSecurityException { in build()
114 SSLContext sslContext = SSLContext.getInstance("TLS"); in build()
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/
DSampleServer.java17 import javax.net.ssl.SSLContext;
23 private final SSLContext sslContext;
27 public SampleServer(SSLContext sslContext, String root, int port) { in SampleServer()
114 SSLContext sslContext = sslContext(keystoreFile, password); in main()
119 private static SSLContext sslContext(String keystoreFile, String password) in sslContext()
136 SSLContext sslContext = SSLContext.getInstance("TLS"); in sslContext()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DCertificatePinnerChainValidationTest.java29 import javax.net.ssl.SSLContext;
63 SSLContext clientContext = new SslContextBuilder() in pinRootNotPresentInChain()
71 SSLContext serverSslContext = new SslContextBuilder() in pinRootNotPresentInChain()
118 SSLContext clientContext = new SslContextBuilder() in pinIntermediatePresentInChain()
126 SSLContext serverSslContext = new SslContextBuilder() in pinIntermediatePresentInChain()
177 SSLContext clientContext = new SslContextBuilder() in unrelatedPinnedLeafCertificateInChain()
200 SSLContext serverSslContext = new SslContextBuilder() in unrelatedPinnedLeafCertificateInChain()
249 SSLContext clientContext = new SslContextBuilder() in unrelatedPinnedIntermediateCertificateInChain()
273 SSLContext serverSslContext = new SslContextBuilder() in unrelatedPinnedIntermediateCertificateInChain()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DCustomTrust.java32 import javax.net.ssl.SSLContext;
41 SSLContext sslContext = sslContextForTrustedCertificates(trustedCertificatesInputStream()); in CustomTrust()
159 public SSLContext sslContextForTrustedCertificates(InputStream in) { in sslContextForTrustedCertificates()
183 SSLContext sslContext = SSLContext.getInstance("TLS"); in sslContextForTrustedCertificates()
/external/python/cpython2/Lib/test/
Dtest_ssl.py144 ssl.SSLContext(ssl.PROTOCOL_SSLv2)
534 ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
672 ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
748 ssl.SSLContext(protocol)
749 self.assertRaises(TypeError, ssl.SSLContext)
750 self.assertRaises(ValueError, ssl.SSLContext, -1)
751 self.assertRaises(ValueError, ssl.SSLContext, 42)
756 ctx = ssl.SSLContext(proto)
760 ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
768 ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
[all …]
/external/google-tv-pairing-protocol/java/src/com/google/polo/ssl/
DSSLServerSocketFactoryWrapper.java26 import javax.net.ssl.SSLContext;
45 SSLContext sslcontext = SSLContext.getInstance("TLS"); in SSLServerSocketFactoryWrapper()
DSSLSocketFactoryWrapper.java27 import javax.net.ssl.SSLContext;
57 SSLContext sslcontext = SSLContext.getInstance("TLS"); in SSLSocketFactoryWrapper()
DSslUtil.java53 import javax.net.ssl.SSLContext;
294 public SSLContext generateTestSslContext() in generateTestSslContext()
296 SSLContext sslcontext = SSLContext.getInstance("SSLv3"); in generateTestSslContext()
/external/okhttp/android/test/java/com/squareup/okhttp/internal/
DPlatformTest.java33 import javax.net.ssl.SSLContext;
88 SSLContext sslContext = SSLContext.getInstance("TLSv1.2"); in rootTrustIndex_notNull_viaSocketFactory()
102 SSLContext sslContext = SSLContext.getInstance("TLSv1.2"); in trustManager()
/external/python/cpython2/Doc/library/
Dssl.rst51 For more sophisticated applications, the :class:`ssl.SSLContext` class
53 by SSL sockets created through the :meth:`SSLContext.wrap_socket` method.
138 Python 2.7.9, it can be more flexible to use :meth:`SSLContext.wrap_socket`
232 A convenience function helps create :class:`SSLContext` objects for common
237 Return a new :class:`SSLContext` object with default settings for
240 :class:`SSLContext` constructor directly.
244 :meth:`SSLContext.load_verify_locations`. If all three are
251 as *purpose* sets :data:`~SSLContext.verify_mode` to :data:`CERT_REQUIRED`
253 *cadata* is given) or uses :meth:`SSLContext.load_default_certs` to load
262 :class:`SSLContext` and apply the settings yourself.
[all …]
/external/nist-sip/java/gov/nist/core/net/
DSslNetworkLayer.java42 import javax.net.ssl.SSLContext;
70 SSLContext sslContext; in SslNetworkLayer()
71 sslContext = SSLContext.getInstance("TLS"); in SslNetworkLayer()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptEngineTest.java34 import javax.net.ssl.SSLContext;
288 SSLContext clientContext = initSslContext(newContext(), clientKeyStore); in setupEngines()
289 SSLContext serverContext = initSslContext(newContext(), serverKeyStore); in setupEngines()
311 private static SSLContext newContext() { in newContext()
313 return SSLContext.getInstance(PROTOCOL_TLS_V1_2, new OpenSSLProvider()); in newContext()
DDuckTypedPSKKeyManagerTest.java28 import javax.net.ssl.SSLContext;
41 SSLContext sslContext = SSLContext.getDefault(); in setUp()
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscrypt.java23 import javax.net.ssl.SSLContext;
119 public static boolean isConscrypt(SSLContext context) { in isConscrypt()
126 public static void setClientSessionCache(SSLContext context, SSLClientSessionCache cache) { in setClientSessionCache()
138 public static void setServerSessionCache(SSLContext context, SSLServerSessionCache cache) { in setServerSessionCache()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DOkHttp.java26 import javax.net.ssl.SSLContext;
41 SSLContext sslContext = SslContextBuilder.localhost(); in prepare()
DUrlConnection.java27 import javax.net.ssl.SSLContext;
37 SSLContext sslContext = SslContextBuilder.localhost(); in prepare()
DApacheHttpClient.java24 import javax.net.ssl.SSLContext;
45 SSLContext sslContext = SslContextBuilder.localhost(); in prepare()
DOkHttpAsync.java32 import javax.net.ssl.SSLContext;
56 SSLContext sslContext = SslContextBuilder.localhost(); in prepare()
/external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
DMain.java47 import javax.net.ssl.SSLContext;
247 SSLContext context = SSLContext.getInstance("TLS"); in createInsecureSslSocketFactory()

123