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 Android Security Essentials Live Lessons this week in the Android 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 java.net.SocketPermission 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: http://aspose.com/file-tools
subject: Granting SocketPermission in an applet
Similar Threads
Remembering username and password in an unsigned applet...
Confusion on Applet Security
Sing applet with thrid party jars
It is not true, Database does not shows through Applet
Please help me in Applet RMI communication