How do I extend permissions to an applet without editing the policy file manually?
Location: http://www.jguru.com/faq/view.jsp?EID=11475 Created: Feb 4, 2000 Modified: 2000-09-13 13:45:30.967 Author: Lennart Jorelid (http://www.jguru.com/guru/viewbio.jsp?EID=15) A: Short answer: Forget about Java 2 security (i.e. the policy file) when creating applets. No major web browser currently supports that security model. Instead, place the applet in a signed JAR file, and make sure the signature of the JAR is in the trusted Certificate Hierarchy of the web browser. Longer answer: Applet security is a very tricky subject, since each web browser has its own way of handling security and certificates. Essentially, you will have to know which web browser loads the applet, to provide the correct packaging (JAR or CAB file). Although all web servers may determine the browser flavor easily, creating a privileged applet within the properly signed container is a hairy matter – mainly because the two major web browsers handle security privileges very differently. I will therefore divide