/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLContext1Test.java | 32 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 …]
|
D | SSLContext2Test.java | 27 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 …]
|
D | SSLSessionContextTest.java | 5 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()
|
D | SSLServerSocketTest.java | 34 import javax.net.ssl.SSLContext; 412 SSLContext context = SSLContext.getInstance("TLS"); in getSSLServerSocket() 422 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_creationStressTest()
|
D | HandshakeCompletedEventTest.java | 33 import javax.net.ssl.SSLContext; 407 SSLContext sslContext = SSLContext.getInstance("TLS"); in TestServer() 488 SSLContext sslContext = SSLContext.getInstance("TLS"); in run()
|
D | SSLSocketTest.java | 34 import javax.net.ssl.SSLContext; 211 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_creationStressTest() 542 SSLContext sslContext = SSLContext.getInstance("TLS"); in run()
|
D | SSLSessionTest.java | 34 import javax.net.ssl.SSLContext; 442 SSLContext clientSslContext = null; 483 SSLContext sslContext = SSLContext.getInstance("TLS"); in TestServer() 566 clientSslContext = SSLContext.getInstance("TLS"); in run()
|
D | SSLEngineTest.java | 33 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/ |
D | SSLContext.java | 91 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 …]
|
D | SSLServerSocketFactory.java | 140 SSLContext context = SSLContext.getDefault(); in getDefault()
|
D | SSLSocketFactory.java | 150 SSLContext context = SSLContext.getDefault(); in getDefault()
|
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
D | ListProviders.java | 34 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/ |
D | SSLServerSocketFactoryTest.java | 25 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()
|
D | SSLSocketFactoryTest.java | 27 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/ |
D | TestSSLContext.java | 38 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 …]
|
D | SSLConfigurationAsserts.java | 22 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/ |
D | SSLSocketBenchmark.java | 28 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/ |
D | HttpsURLConnectionTest.java | 51 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/ |
D | URLConnectionTest.java | 83 import javax.net.ssl.SSLContext; 2263 SSLContext sc = SSLContext.getInstance("TLS");
|
/libcore/ |
D | openjdk_java_files.bp | 1288 "ojluni/src/main/java/javax/net/ssl/SSLContext.java",
|
/libcore/api/ |
D | current.txt | 17845 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);
|