Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet security issue

 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm about to developp an applet for HTTP file downloads.
it will use a JFileChooser to select a local dir where the files should be saved.

I know that applets run in a sandbox security restrictions, so it won't allow to write files to user machine neither invoke a fileChooser.
so what are the available options other than signing the applet ?
i mean is there any solution other than digital signing to be able to use this applet ?

thanking you much.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some ways to do this that involve having the user edit a local java.policy file, but that's defintely more than you could ever ask of a real user -- it's just something you can do during development. No, there's no way to get around the digital signature thing. Why do you not want to do things the right way?

Note, by the way, that from your description it sounds like you could simply use HTML links to remote documents, and let the browser handle saving the files. Why do you have to use an applet?
 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll definetly do things the right way. I just was not sure if there is another solution to applet security sandbox other than digital signing.

For your proposition ;it is not appropriate for my project : for this is going to be a multiple files download : i.e i'll have to click one single button to download an indefinite number of http files in the same time. the http url locations of files will be set by applet params.

that's it.
thank you for your reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic