Lines Matching refs:ssl
16 package tests.api.javax.net.ssl;
23 import javax.net.ssl.KeyManagerFactory;
24 import javax.net.ssl.SSLContextSpi;
25 import javax.net.ssl.SSLEngine;
26 import javax.net.ssl.SSLServerSocketFactory;
27 import javax.net.ssl.SSLSessionContext;
28 import javax.net.ssl.SSLSocketFactory;
29 import javax.net.ssl.KeyManager;
30 import javax.net.ssl.TrustManager;
31 import javax.net.ssl.TrustManagerFactory;
46 * @tests javax.net.ssl.SSLContextSpi#SSLContextSpi()
56 SSLContextSpiImpl ssl = new SSLContextSpiImpl();
57 assertTrue(ssl instanceof SSLContextSpi);
64 * @tests javax.net.ssl.SSLContextSpi#engineCreateSSLEngine()
74 SSLContextSpiImpl ssl = new SSLContextSpiImpl();
76 SSLEngine sleng = ssl.engineCreateSSLEngine();
88 * @tests javax.net.ssl.SSLContextSpi#engineCreateSSLEngine(String host, int port)
99 SSLContextSpiImpl ssl = new SSLContextSpiImpl();
101 SSLEngine sleng = ssl.engineCreateSSLEngine("localhost", 1080);
113 SSLEngine sleng = ssl.engineCreateSSLEngine("localhost", invalid_port[i]);
155 SSLContextSpiImpl ssl = new SSLContextSpiImpl();
158 SSLSessionContext slsc = ssl.engineGetClientSessionContext();
169 SSLSessionContext slsc = ssl.engineGetServerSessionContext();
180 SSLServerSocketFactory sssf = ssl.engineGetServerSocketFactory();
191 SSLSocketFactory ssf = ssl.engineGetSocketFactory();
209 args = {javax.net.ssl.KeyManager[].class, javax.net.ssl.TrustManager[].class, java.security.SecureRandom.class}
212 SSLContextSpiImpl ssl = new SSLContextSpiImpl();
213 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm");
219 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm");
227 ssl.engineInit(km, tm, sr);
232 ssl.engineInit(km, tm, null);
289 SSLContextSpiImpl ssl = new SSLContextSpiImpl();
290 String defaultAlgorithm = Security.getProperty("ssl.KeyManagerFactory.algorithm");
296 defaultAlgorithm = Security.getProperty("ssl.TrustManagerFactory.algorithm");
303 ssl.engineInit(km, tm, sr);
309 assertNotNull("Subtest_01: Object is NULL", ssl.engineCreateSSLEngine());
310 SSLEngine sleng = ssl.engineCreateSSLEngine("localhost", 1080);
314 assertNull("Subtest_03: Object not NULL", ssl.engineGetClientSessionContext());
315 assertNull("Subtest_04: Object not NULL", ssl.engineGetServerSessionContext());
316 assertNull("Subtest_05: Object not NULL", ssl.engineGetServerSocketFactory());
317 assertNull("Subtest_06: Object not NULL", ssl.engineGetSocketFactory());