Setting codebase and permissions in java.policy file
Geraldine Premkumar
Greenhorn
Joined: May 01, 2006
Posts: 5
posted
0
Hi,
I am new to javaranch and am not sure if this is the right place to post question on java2 policy files. If not please route it to the right forum.
I have restricted access to a pacakge in the ${java.home}/jre/lib/security/java.security file through package.access = test.mypackage;
Now I want to grant access to the above package only to web.myfiles.jar which I did through the following entry in ${java.home}/jre/lib/security/java.policy
grant codeBase "file:///web/myfiles.jar" { permission java.lang.RuntimePermission "accessClassInPackage.test.mypackage"; };