Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Granting SocketPermission in an applet

 
Dan Dawson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic