Home
last modified time | relevance | path

Searched refs:sf (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
DServerSocketFactoryTest.java36 ServerSocketFactory sf = new MyServerSocketFactory(); in test_Constructor() local
40 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket() local
41 ServerSocket ss = sf.createServerSocket(); in test_createServerSocket()
47 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket_I() local
48 ServerSocket ss = sf.createServerSocket(0); in test_createServerSocket_I()
52 sf.createServerSocket(ss.getLocalPort()); in test_createServerSocket_I()
60 sf.createServerSocket(-1); in test_createServerSocket_I()
67 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket_II() local
68 ServerSocket ss = sf.createServerSocket(0, 0); in test_createServerSocket_II()
72 sf.createServerSocket(ss.getLocalPort(), 0); in test_createServerSocket_II()
[all …]
DSocketFactoryTest.java43 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket() local
45 Socket s = sf.createSocket(); in test_createSocket()
59 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_StringI() local
63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport); in test_createSocket_StringI()
68 sf.createSocket("1.2.3.4hello", sport); in test_createSocket_StringI()
75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]); in test_createSocket_StringI()
82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort()); in test_createSocket_StringI()
96 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_InetAddressI() local
100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport); in test_createSocket_InetAddressI()
106 sf.createSocket(InetAddress.getLocalHost(), invalidPorts[i]); in test_createSocket_InetAddressI()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketFactoryTest.java46 SocketFactory sf = SSLSocketFactory.getDefault(); in test_Constructor() local
47 assertTrue(sf instanceof SSLSocketFactory); in test_Constructor()
65 SSLSocketFactory sf = (SSLSocketFactory)SSLSocketFactory.getDefault(); in test_createSocket() local
73 Socket s = sf.createSocket(st, "localhost", sport, false); in test_createSocket()
77 s = sf.createSocket(st, "localhost", sport, true); in test_createSocket()
82 sf.createSocket(null, "localhost", sport, true); in test_createSocket()
89 s = sf.createSocket(new Socket(), "localhost", 1080, false); in test_createSocket()
97 s = sf.createSocket(st, "1.2.3.4hello", sport, false); in test_createSocket()
108 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_getDefaultCipherSuites() local
110 sf.getDefaultCipherSuites().length > 0); in test_getDefaultCipherSuites()
[all …]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketFactoryTest.java49 SocketFactory sf = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault() local
50 assertNotNull(sf); in test_SSLSocketFactory_getDefault()
51 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf.getClass())); in test_SSLSocketFactory_getDefault()
218 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefaultCipherSuitesReturnsCopies() local
219 assertNotSame(sf.getDefaultCipherSuites(), sf.getDefaultCipherSuites()); in test_SSLSocketFactory_getDefaultCipherSuitesReturnsCopies()
223 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getSupportedCipherSuitesReturnsCopies() local
224 assertNotSame(sf.getSupportedCipherSuites(), sf.getSupportedCipherSuites()); in test_SSLSocketFactory_getSupportedCipherSuitesReturnsCopies()
229 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocketFactory_createSocket() local
230 Socket s = sf.createSocket(null, null, -1, false); in test_SSLSocketFactory_createSocket()
236 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocketFactory_createSocket() local
[all …]
DSSLSocketTest.java129 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocket_getSupportedCipherSuites_returnsCopies() local
130 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedCipherSuites_returnsCopies()
251 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocket_getEnabledCipherSuites_returnsCopies() local
252 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledCipherSuites_returnsCopies()
257 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocket_setEnabledCipherSuites_storesCopy() local
258 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_storesCopy()
267 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocket_setEnabledCipherSuites() local
268 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites()
297 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocket_getSupportedProtocols_returnsCopies() local
298 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedProtocols_returnsCopies()
[all …]
DSSLContextTest.java453 SocketFactory sf = sslContext.getSocketFactory(); in test_SSLContext_getSocketFactory() local
454 assertNotNull(sf); in test_SSLContext_getSocketFactory()
455 assertTrue(SSLSocketFactory.class.isAssignableFrom(sf.getClass())); in test_SSLContext_getSocketFactory()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldSimpleFormatterTest.java25 SimpleFormatter sf = new SimpleFormatter(); field in OldSimpleFormatterTest
28 assertEquals("Head for this SimpleFormatter should be empty", "", sf.getHead(null)); in testSimpleFormatter()
29 assertEquals("Tail for this SimpleFormatter should be empty", "", sf.getTail(null)); in testSimpleFormatter()
/libcore/ojluni/src/main/java/javax/net/ssl/
DHttpsURLConnection.java311 public static void setDefaultSSLSocketFactory(SSLSocketFactory sf) { in setDefaultSSLSocketFactory() argument
312 if (sf == null) { in setDefaultSSLSocketFactory()
321 defaultSSLSocketFactory = sf; in setDefaultSSLSocketFactory()
357 public void setSSLSocketFactory(SSLSocketFactory sf) { in setSSLSocketFactory() argument
358 if (sf == null) { in setSSLSocketFactory()
367 sslSocketFactory = sf; in setSSLSocketFactory()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java171 SchemaFactory sf; in _newFactory() local
180 sf = createInstance(r); in _newFactory()
181 if(sf!=null) return sf; in _newFactory()
208 sf = createInstance(factoryClassName); in _newFactory()
209 if(sf != null){ in _newFactory()
210 return sf; in _newFactory()
223 sf = loadFromServicesFile(schemaLanguage,resource.toExternalForm(), in _newFactory()
225 if(sf!=null) return sf; in _newFactory()
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java72 private SocketFactory sf; field in SSLSocketBenchmark
78 this.sf = sslContext.getSocketFactory(); in setUp()
83 Socket s = sf.createSocket(webSite.host, webSite.port); in time()
DReflectionBenchmark.java206 public static int sf = 0; field in ReflectionBenchmark.C
225 sf = value; in setStaticField()
236 public static final int sf = 0; field
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSessions.java67 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in create() local
68 SSLSocket ssl = (SSLSocket) sf.createSocket(); in create()
DTestSSLContext.java381 public static SSLSocketFactory clientAuth(final SSLSocketFactory sf, in clientAuth() argument
393 return set(sf.createSocket(host, port)); in clientAuth()
397 return set(sf.createSocket(host, port, localHost, localPort)); in clientAuth()
400 return set(sf.createSocket(host, port)); in clientAuth()
404 return set(sf.createSocket(address, port)); in clientAuth()
408 return sf.getDefaultCipherSuites(); in clientAuth()
411 return sf.getSupportedCipherSuites(); in clientAuth()
416 return set(sf.createSocket(s, host, port, autoClose)); in clientAuth()
/libcore/ojluni/src/main/java/sun/security/util/
DSignatureFileVerifier.java280 Manifest sf = new Manifest(); in processImpl() local
281 sf.read(new ByteArrayInputStream(sfBytes)); in processImpl()
284 sf.getMainAttributes().getValue(Attributes.Name.SIGNATURE_VERSION); in processImpl()
307 sf.getEntries().entrySet().iterator(); in processImpl()
310 boolean manifestSigned = verifyManifestHash(sf, md, manifestDigests); in processImpl()
313 if (!manifestSigned && !verifyManifestMainAttrs(sf, md)) { in processImpl()
351 private boolean verifyManifestHash(Manifest sf, in verifyManifestHash() argument
356 Attributes mattr = sf.getMainAttributes(); in verifyManifestHash()
396 private boolean verifyManifestMainAttrs(Manifest sf, in verifyManifestMainAttrs() argument
400 Attributes mattr = sf.getMainAttributes(); in verifyManifestMainAttrs()