File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Granting SocketPermission in an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Granting SocketPermission in an applet" Watch "Granting SocketPermission in an applet" New topic

Granting SocketPermission in an applet

Dan Dawson

Joined: Jan 29, 2003
Posts: 1
I have an unsigned JMF applet that requires me to set a in the .java.policy file. I was wondering if there was a way in the applet to set this policy so that I do not have to alter the policy file. The applet should remain unsigned.
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
No. That's impossible. Java security will prevent it from exceeding the permissions that have been granted to untrusted applets in the policy file. A backdoor would undermine the entire security mechanism.
- Peter
I agree. Here's the link:
subject: Granting SocketPermission in an applet
Similar Threads
Please help me in Applet RMI communication
Remembering username and password in an unsigned applet...
Sing applet with thrid party jars
Confusion on Applet Security
It is not true, Database does not shows through Applet