How to dynamically change Policy permissions [adding or dropping].
My policy file is like this
grant {
permission java.io.FilePermission "c:\\tmp\\*", "read";
};
Inside the program I want to add some more permissions programically.
How to do that?
Any help?
I JDK1.2B3 the was a method like
SetProtectionDomaic() in Class class with the help of that we I could put
the class in different domain with different set of permissions. But in
JDK 1.2b4 this method is not present. So how to do the same in JDK12b4?
Thanks
Ehsan Masud