aspose file tools*
The moose likes Security and the fly likes Need to create new policy file for applet access... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Need to create new policy file for applet access..." Watch "Need to create new policy file for applet access..." New topic
Author

Need to create new policy file for applet access...

Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
I'm running into some apparently well-known problems with signed applets accessing a client machine's hard drive.

So, I can get things to work if I place the following two lines in my 'local' JDK installation:



These let me a) read the user's home directory and b) read/write a file that's located there.

What I don't want to do is edit the java.policy file, but I'm having problems loading a separate policy file. The app server we run with our product is jetty, and I'm assuming I would be passing in the '-Djava.security.policy=='filename' with the other jetty start-up parameters- is this a correct assumption? And, what path do I give for the file, will I need to put it somewhere in the .war file we distribute, or in the JDK installation on the server? If it's on the server, will client machine's know about these extra rights?

I'd *REALLY* appreciate any help I could get on this...

thanks in advance,
+0^^
Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
It's looking like things only work if the java.policy file on the client machine has been altered. Is there anyway for me to make a change on the server that will affect client machines?
 
 
subject: Need to create new policy file for applet access...