Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContext1Test.java32 import javax.net.ssl.SSLContext;
74 protected SSLContext[] createSSLCon() { in createSSLCon()
79 SSLContext[] sslC = new SSLContext[3]; in createSSLCon()
81 sslC[0] = SSLContext.getInstance(defaultProtocol); in createSSLCon()
82 sslC[1] = SSLContext.getInstance(defaultProtocol, defaultProvider); in createSSLCon()
83 sslC[2] = SSLContext.getInstance(defaultProtocol, in createSSLCon()
104 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
146 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngine()
161 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngineLjava_lang_StringI()
179 SSLContext[] sslC = createSSLCon(); in test_getClientSessionContext()
[all …]
DSSLContext2Test.java27 import javax.net.ssl.SSLContext;
75 private void checkSSLContext(SSLContext sslC) in checkSSLContext()
153 SSLContext.getInstance(null); in test_getInstanceLjava_lang_String()
161 SSLContext.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String()
167 SSLContext sslC; in test_getInstanceLjava_lang_String()
169 sslC = SSLContext.getInstance(validValues[i]); in test_getInstanceLjava_lang_String()
170 assertTrue("Not instanceof SSLContext object", sslC instanceof SSLContext); in test_getInstanceLjava_lang_String()
191 SSLContext.getInstance(null, mProv.getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
199 SSLContext.getInstance(invalidValues[i], mProv.getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
208 SSLContext.getInstance(validValues[i], prov); in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DSSLSessionContextTest.java5 import javax.net.ssl.SSLContext;
23 SSLContext context = SSLContext.getInstance("TLS"); in test_sessionCacheSize()
47 SSLContext context = SSLContext.getInstance("TLS"); in test_sessionTimeout()
70 SSLContext context = SSLContext.getInstance("TLS"); in test_getSession()
88 SSLContext context = SSLContext.getInstance("TLS"); in test_getIds()
DSSLServerSocketTest.java34 import javax.net.ssl.SSLContext;
412 SSLContext context = SSLContext.getInstance("TLS"); in getSSLServerSocket()
422 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_creationStressTest()
DHandshakeCompletedEventTest.java33 import javax.net.ssl.SSLContext;
407 SSLContext sslContext = SSLContext.getInstance("TLS"); in TestServer()
488 SSLContext sslContext = SSLContext.getInstance("TLS"); in run()
DSSLSocketTest.java34 import javax.net.ssl.SSLContext;
211 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_creationStressTest()
542 SSLContext sslContext = SSLContext.getInstance("TLS"); in run()
DSSLSessionTest.java34 import javax.net.ssl.SSLContext;
442 SSLContext clientSslContext = null;
483 SSLContext sslContext = SSLContext.getInstance("TLS"); in TestServer()
566 clientSslContext = SSLContext.getInstance("TLS"); in run()
DSSLEngineTest.java33 import javax.net.ssl.SSLContext;
1037 SSLContext context = SSLContext.getInstance("TLS"); in getEngine()
1043 SSLContext context = SSLContext.getInstance("TLS"); in getEngine()
1098 HandshakeHandler(SSLContext context, boolean clientMode, SourceChannel in, SinkChannel out)
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLContext.java91 public class SSLContext { class
105 protected SSLContext(SSLContextSpi contextSpi, Provider provider, in SSLContext() method in SSLContext
112 private static SSLContext defaultContext;
131 public static synchronized SSLContext getDefault() in getDefault()
134 defaultContext = SSLContext.getInstance("Default"); in getDefault()
157 public static synchronized void setDefault(SSLContext context) { in setDefault()
197 public static SSLContext getInstance(String protocol) in getInstance()
201 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
240 public static SSLContext getInstance(String protocol, String provider) in getInstance()
244 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
[all …]
DSSLServerSocketFactory.java140 SSLContext context = SSLContext.getDefault(); in getDefault()
DSSLSocketFactory.java150 SSLContext context = SSLContext.getDefault(); in getDefault()
/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java34 import javax.net.ssl.SSLContext;
137 SSLContext defaultContext = SSLContext.getDefault(); in main()
138 SSLContext tls13Context = SSLContext.getInstance("TLSv1.3"); in main()
142 SSLContext pskContext = SSLContext.getInstance("TLS"); in main()
147 for (SSLContext sslContext : new SSLContext[] {defaultContext, tls13Context, pskContext}) { in main()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLServerSocketFactoryTest.java25 import javax.net.ssl.SSLContext;
44 SSLContext origContext = null; in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
46 origContext = SSLContext.getDefault(); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
48 SSLContext.setDefault(SSLContext.getInstance("Default", fakeProvider)); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
56 SSLContext.setDefault(origContext); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
DSSLSocketFactoryTest.java27 import javax.net.ssl.SSLContext;
46 SSLContext origContext = null; in test_SSLSocketFactory_getDefault_cacheInvalidate()
48 origContext = SSLContext.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
50 SSLContext.setDefault(SSLContext.getInstance("Default", fakeProvider)); in test_SSLSocketFactory_getDefault_cacheInvalidate()
58 SSLContext.setDefault(origContext); in test_SSLSocketFactory_getDefault_cacheInvalidate()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLContext.java38 import javax.net.ssl.SSLContext;
96 public final SSLContext clientContext;
97 public final SSLContext serverContext;
211 SSLContext clientContext, in TestSSLContext()
212 SSLContext serverContext, in TestSSLContext()
266 SSLContext clientContext = in createWithAdditionalKeyManagers()
268 SSLContext serverContext = in createWithAdditionalKeyManagers()
289 SSLContext clientContext, in create()
290 SSLContext serverContext) { in create()
317 public static final SSLContext createSSLContext(final String protocol, in createSSLContext()
[all …]
DSSLConfigurationAsserts.java22 import javax.net.ssl.SSLContext;
43 SSLContext.getDefault()); in assertSSLSocketFactoryDefaultConfiguration()
52 SSLSocketFactory sslSocketFactory, SSLContext sslContext) throws IOException { in assertSSLSocketFactoryConfigSameAsSSLContext()
69 SSLContext sslContext) { in assertSSLSocketConfigSameAsSSLContext()
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java28 import javax.net.ssl.SSLContext;
76 SSLContext sslContext = SSLContext.getInstance("SSL"); in setUp()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java51 import javax.net.ssl.SSLContext;
129 SSLContext ctx = getContext(); in testHttpsConnection()
161 SSLContext ctx = getContext(); in testHttpsConnection_Not_Found_Response()
199 SSLContext ctx = getContext(); in testSetDefaultSSLSocketFactory()
246 SSLContext ctx = getContext(); in testSetSSLSocketFactory()
323 SSLContext ctx = getContext(); in testSetHostnameVerifier()
359 SSLContext ctx = getContext(); in test_doOutput()
390 SSLContext ctx = getContext(); in testProxyConnection()
431 SSLContext ctx = getContext(); in testProxyAuthConnection()
538 SSLContext ctx = getContext(); in testProxyAuthConnection_doOutput()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java83 import javax.net.ssl.SSLContext;
2263 SSLContext sc = SSLContext.getInstance("TLS");
/libcore/
Dopenjdk_java_files.bp1288 "ojluni/src/main/java/javax/net/ssl/SSLContext.java",
/libcore/api/
Dcurrent.txt17845 public class SSLContext {
17846 ctor protected SSLContext(javax.net.ssl.SSLContextSpi, java.security.Provider, String);
17850 …method public static javax.net.ssl.SSLContext getDefault() throws java.security.NoSuchAlgorithmExc…
17852 …method public static javax.net.ssl.SSLContext getInstance(String) throws java.security.NoSuchAlgor…
17853 …method public static javax.net.ssl.SSLContext getInstance(String, String) throws java.security.NoS…
17854 …method public static javax.net.ssl.SSLContext getInstance(String, java.security.Provider) throws j…
17862 method public static void setDefault(javax.net.ssl.SSLContext);