A
Ajay
Hi Folks,
I have a question on Java security, about the system wide security
policy.
I know the system policy can be set by providing runtime policy file
argument to
java.security.policy
Can I change the system policy in a Java program without using the
policy file?
I tried lokking at the Java API, Class Policy in java.security package
It has methods to get and set system-wide policy.
There is a method to get the permissions from the policy,
getPermissions
But no method to setPermissions.
The refresh() method that it has will only load from the policy file.
Thanks in advance, I really appreciate any help.
Ajay.
I have a question on Java security, about the system wide security
policy.
I know the system policy can be set by providing runtime policy file
argument to
java.security.policy
Can I change the system policy in a Java program without using the
policy file?
I tried lokking at the Java API, Class Policy in java.security package
It has methods to get and set system-wide policy.
There is a method to get the permissions from the policy,
getPermissions
But no method to setPermissions.
The refresh() method that it has will only load from the policy file.
Thanks in advance, I really appreciate any help.
Ajay.