# Dynamically Adding /Dropping permissions ?

Ehsan Masud (a97485@cs.ait.ac.th)
Tue, 13 Oct 1998 00:19:12 +0700 (ICT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Charlie Lai: "Re: JSECURITY Issue: Java Security API"
- Previous message: myatr@msn.com: "Get DRAMATICALLY more website traffic in as little as 72 hours!"

Hi,

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

- Next message: Charlie Lai: "Re: JSECURITY Issue: Java Security API"
- Previous message: myatr@msn.com: "Get DRAMATICALLY more website traffic in as little as 72 hours!"