Home
last modified time | relevance | path

Searched refs:SSLSocketFactory (Results 1 – 25 of 33) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketFactoryTest.java24 import javax.net.ssl.SSLSocketFactory;
46 SocketFactory sf = SSLSocketFactory.getDefault(); in test_Constructor()
47 assertTrue(sf instanceof SSLSocketFactory); in test_Constructor()
58 SSLSocketFactory.getDefault()); in test_getDefault()
65 SSLSocketFactory sf = (SSLSocketFactory)SSLSocketFactory.getDefault(); in test_createSocket()
108 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_getDefaultCipherSuites()
121 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_getSupportedCipherSuites()
DHttpsURLConnectionTest.java32 import javax.net.ssl.SSLSocketFactory;
50 (SSLSocketFactory)SSLSocketFactory.getDefault()); in setUp()
227 SSLSocketFactory ssf = (SSLSocketFactory) SSLSocketFactory in test_setDefaultSSLSocketFactory()
242 SSLSocketFactory ssf = (SSLSocketFactory) SSLSocketFactory in test_setSSLSocketFactory()
DSSLSessionBindingListenerTest.java26 import javax.net.ssl.SSLSocketFactory;
63 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueBound()
77 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueUnbound()
DHandshakeCompletedEventTest.java38 import javax.net.ssl.SSLSocketFactory;
74 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_Constructor()
89 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getCipherSuite()
100 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getLocalCertificates()
111 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getLocalPrincipal()
123 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerCertificateChain()
146 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerCertificates()
166 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerPrincipal()
177 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getSession()
189 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getSocket()
DSSLContextSpiTest.java30 import javax.net.ssl.SSLSocketFactory;
153 SSLSocketFactory ssf = ssl.engineGetSocketFactory(); in commonTest_01()
209 public SSLSocketFactory engineGetSocketFactory() { in engineGetSocketFactory()
211 return (SSLSocketFactory) SSLSocketFactory.getDefault(); in engineGetSocketFactory()
DSSLSocketTest.java37 import javax.net.ssl.SSLSocketFactory;
617 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in getSSLSocket()
621 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port); in getSSLSocket()
625 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port); in getSSLSocket()
630 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, in getSSLSocket()
638 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, in getSSLSocket()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketFactoryTest.java28 import javax.net.ssl.SSLSocketFactory;
40 SocketFactory sf1 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
42 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf1.getClass())); in test_SSLSocketFactory_getDefault_cacheInvalidate()
52 sf4 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
54 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf4.getClass())); in test_SSLSocketFactory_getDefault_cacheInvalidate()
62 SocketFactory sf3 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
64 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf3.getClass())); in test_SSLSocketFactory_getDefault_cacheInvalidate()
70 SocketFactory sf2 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
72 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf2.getClass())); in test_SSLSocketFactory_getDefault_cacheInvalidate()
110 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocketFactory_createSocket_withConsumedInputStream()
DFakeSSLSocketFactory.java20 import javax.net.ssl.SSLSocketFactory;
24 public class FakeSSLSocketFactory extends SSLSocketFactory {
DFakeSSLContextSpi.java24 import javax.net.ssl.SSLSocketFactory;
38 protected SSLSocketFactory engineGetSocketFactory() { in engineGetSocketFactory()
DFakeSSLServerSocketFactory.java23 import javax.net.ssl.SSLSocketFactory;
/libcore/ojluni/src/main/java/javax/net/ssl/
DHttpsURLConnection.java361 private static SSLSocketFactory defaultSSLSocketFactory = null;
367 private SSLSocketFactory sslSocketFactory = getDefaultSSLSocketFactory();
384 public static void setDefaultSSLSocketFactory(SSLSocketFactory sf) { in setDefaultSSLSocketFactory()
407 public static SSLSocketFactory getDefaultSSLSocketFactory() { in getDefaultSSLSocketFactory()
410 (SSLSocketFactory)SSLSocketFactory.getDefault(); in getDefaultSSLSocketFactory()
433 public void setSSLSocketFactory(SSLSocketFactory sf) { in setSSLSocketFactory()
453 public SSLSocketFactory getSSLSocketFactory() { in getSSLSocketFactory()
DSSLSocketFactory.java46 public abstract class SSLSocketFactory extends SocketFactory class
51 private static SSLSocketFactory defaultSocketFactory;
78 public SSLSocketFactory() { in SSLSocketFactory() method in SSLSocketFactory
104 SSLSocketFactory previousDefaultSocketFactory = defaultSocketFactory; in getDefault()
138 SSLSocketFactory fac = (SSLSocketFactory)cls.newInstance(); in getDefault()
284 class DefaultSSLSocketFactory extends SSLSocketFactory
DSSLContextSpi.java64 protected abstract SSLSocketFactory engineGetSocketFactory(); in engineGetSocketFactory()
142 SSLSocketFactory factory = engineGetSocketFactory(); in getDefaultSocket()
DSSLServerSocketFactory.java61 if (SSLSocketFactory.DEBUG) { in log()
97 String clsName = SSLSocketFactory.getSecurityProperty in getDefault()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSessions.java21 import javax.net.ssl.SSLSocketFactory;
67 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in create()
DSSLConfigurationAsserts.java25 import javax.net.ssl.SSLSocketFactory;
41 SSLSocketFactory sslSocketFactory) throws Exception { in assertSSLSocketFactoryDefaultConfiguration()
52 SSLSocketFactory sslSocketFactory, SSLContext sslContext) throws IOException { in assertSSLSocketFactoryConfigSameAsSSLContext()
DTestSSLContext.java41 import javax.net.ssl.SSLSocketFactory;
381 public static SSLSocketFactory clientAuth(final SSLSocketFactory sf, in clientAuth()
384 return new SSLSocketFactory() { in clientAuth()
/libcore/ojluni/annotations/mmodule/javax/net/ssl/
DHttpsURLConnection.annotated.java51 …public static void setDefaultSSLSocketFactory(javax.net.ssl.SSLSocketFactory sf) { throw new Runti… in setDefaultSSLSocketFactory()
53 …public static javax.net.ssl.SSLSocketFactory getDefaultSSLSocketFactory() { throw new RuntimeExcep… in getDefaultSSLSocketFactory()
55 …public void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory sf) { throw new RuntimeException("S… in setSSLSocketFactory()
57 …public javax.net.ssl.SSLSocketFactory getSSLSocketFactory() { throw new RuntimeException("Stub!");… in getSSLSocketFactory()
/libcore/ojluni/annotations/hiddenapi/javax/net/ssl/
DSSLSocketFactory.java33 public abstract class SSLSocketFactory extends javax.net.SocketFactory { class
35 public SSLSocketFactory() { in SSLSocketFactory() method in SSLSocketFactory
84 private static javax.net.ssl.SSLSocketFactory defaultSocketFactory;
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketFactoryBenchmark.java19 import javax.net.ssl.SSLSocketFactory;
24 SSLSocketFactory.getDefault(); in time()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DSSLContextSpiImpl.java31 import javax.net.ssl.SSLSocketFactory;
47 public SSLSocketFactory engineGetSocketFactory() { in engineGetSocketFactory()
DSSLSocketFactoryImpl.java20 import javax.net.ssl.SSLSocketFactory;
28 public class SSLSocketFactoryImpl extends SSLSocketFactory {
DMySSLContextSpi.java32 import javax.net.ssl.SSLSocketFactory;
52 protected SSLSocketFactory engineGetSocketFactory() { in engineGetSocketFactory()
/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java34 import javax.net.ssl.SSLSocketFactory;
141 SSLSocketFactory socketFactory = sslContext.getSocketFactory(); in main()
/libcore/luni/src/main/java/java/security/
Dsecurity.properties36 # The default SSLSocketFactory and SSLServerSocketFactory provider implementations.
38 # javax/net/ssl/SSLSocketFactory.html#getDefault()

12