wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Granting SocketPermission in an applet" Watch "Granting SocketPermission in an applet" New topic
Author

Granting SocketPermission in an applet

Dan Dawson
Greenhorn

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
author
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
 
Consider Paul's rocket mass heater.
 
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