R
Rach
Hi,
I understand that to grant a permission, one has to have a policy file and
attach the policy file either in command prompt:
e.g. java -Djava.security.policy=file.policy classtoinvoke
or in the java file:
System.setProperty("java.security.policy",
getClass().getResource("/file.policy").toString());
Can I grant a policy without a policy file? I mean, I want to hardcode the
permissions and grant them in the java class file. I know I can create
permission objects in java, but how do I grant these objects?
Thanks in advance,
-rach
I understand that to grant a permission, one has to have a policy file and
attach the policy file either in command prompt:
e.g. java -Djava.security.policy=file.policy classtoinvoke
or in the java file:
System.setProperty("java.security.policy",
getClass().getResource("/file.policy").toString());
Can I grant a policy without a policy file? I mean, I want to hardcode the
permissions and grant them in the java class file. I know I can create
permission objects in java, but how do I grant these objects?
Thanks in advance,
-rach