Can we add some commands in .java files to grant permissions?
If that were possible, then the .java.polcy file would NOT provide security.
have you looked at signing the jar file the applet code is in? There are several posts on this forum on how to sign a jar file.