Home
last modified time | relevance | path

Searched refs:sslContext (Results 1 – 8 of 8) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContext1Test.java104 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String() local
107 sslContext.getProtocol()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
109 sslContext.getProvider()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
112 sslContext.init(km, tm, new SecureRandom()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
114 sslContext.createSSLEngine()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
116 sslContext.createSSLEngine("host", 8888)); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
118 sslContext.init(km, tm, null); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
124 sslContext = new MySslContext(null, null, null); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
125 assertNull("Incorrect protocol", sslContext.getProtocol()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
126 assertNull("Incorrect provider", sslContext.getProvider()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
[all …]
DSSLServerSocketTest.java422 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_creationStressTest() local
423 sslContext.init(keyManagers, null, null); in test_creationStressTest()
425 sslContext.getServerSocketFactory().createServerSocket().close(); in test_creationStressTest()
429 sslContext.init(keyManagers, null, new SecureRandom()); in test_creationStressTest()
431 sslContext.getServerSocketFactory().createServerSocket().close(); in test_creationStressTest()
DSSLSocketTest.java211 SSLContext sslContext = SSLContext.getInstance("TLS"); in test_creationStressTest() local
212 sslContext.init(null, null, null); in test_creationStressTest()
214 sslContext.getSocketFactory().createSocket().close(); in test_creationStressTest()
218 sslContext.init(null, null, new SecureRandom()); in test_creationStressTest()
220 sslContext.getSocketFactory().createSocket().close(); in test_creationStressTest()
542 SSLContext sslContext = SSLContext.getInstance("TLS"); in run() local
543 sslContext.init(keyManagers, trustManagers, null); in run()
546 sslContext.getServerSocketFactory().createServerSocket(); in run()
DHandshakeCompletedEventTest.java407 SSLContext sslContext = SSLContext.getInstance("TLS"); in TestServer() local
408 sslContext.init(keyManagers, trustManagers, null); in TestServer()
410 … serverSocket = (SSLServerSocket) sslContext.getServerSocketFactory().createServerSocket(); in TestServer()
488 SSLContext sslContext = SSLContext.getInstance("TLS"); in run() local
489 sslContext.init(keyManagers, trustManagers, null); in run()
491 SSLSocket socket = (SSLSocket)sslContext.getSocketFactory().createSocket(); in run()
DSSLSessionTest.java483 SSLContext sslContext = SSLContext.getInstance("TLS"); in TestServer() local
484 sslContext.init(keyManagers, trustManagers, null); in TestServer()
486 … serverSocket = (SSLServerSocket)sslContext.getServerSocketFactory().createServerSocket(); in TestServer()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DSSLConfigurationAsserts.java52 SSLSocketFactory sslSocketFactory, SSLContext sslContext) throws IOException { in assertSSLSocketFactoryConfigSameAsSSLContext() argument
53 assertCipherSuitesEqual(sslContext.getDefaultSSLParameters().getCipherSuites(), in assertSSLSocketFactoryConfigSameAsSSLContext()
55 assertCipherSuitesEqual(sslContext.getSupportedSSLParameters().getCipherSuites(), in assertSSLSocketFactoryConfigSameAsSSLContext()
61 assertSSLSocketConfigSameAsSSLContext(sslSocket, sslContext); in assertSSLSocketFactoryConfigSameAsSSLContext()
69 SSLContext sslContext) { in assertSSLSocketConfigSameAsSSLContext() argument
70 assertSSLParametersEqual(sslSocket.getSSLParameters(), sslContext.getDefaultSSLParameters()); in assertSSLSocketConfigSameAsSSLContext()
72 sslContext.getDefaultSSLParameters().getCipherSuites()); in assertSSLSocketConfigSameAsSSLContext()
74 sslContext.getDefaultSSLParameters().getProtocols()); in assertSSLSocketConfigSameAsSSLContext()
77 sslContext.getSupportedSSLParameters().getCipherSuites()); in assertSSLSocketConfigSameAsSSLContext()
79 sslContext.getSupportedSSLParameters().getProtocols()); in assertSSLSocketConfigSameAsSSLContext()
/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java147 for (SSLContext sslContext : new SSLContext[] {defaultContext, tls13Context, pskContext}) { in main()
148 SSLEngine engine = sslContext.createSSLEngine(); in main()
150 print(sslContext.getProvider(), "SSLEngine.Supported", suite); in main()
153 print(sslContext.getProvider(), "SSLEngine.Enabled", suite); in main()
155 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in main()
157 print(sslContext.getProvider(), "SSLSocket.Supported", suite); in main()
160 print(sslContext.getProvider(), "SSLSocket.Enabled", suite); in main()
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java76 SSLContext sslContext = SSLContext.getInstance("SSL"); in setUp() local
77 sslContext.init(null, null, null); in setUp()
78 this.sf = sslContext.getSocketFactory(); in setUp()