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
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