java -Djava.security.manager -Djava.security.policy=myPolicy classfile

Hi everybody and Sun's member,

From the command line we can install security manager as follows :

java -Djava.security.manager - Djava.security.policy=myPolicy

is it possible to install security manager and policy file by our program. Sugestion pliz.

Regards

Gt

[314 byte] By [rkgeet] at [2007-9-26 3:42:29]
# 1
Is there any API to install security manager.RegardsGt
rkgeet at 2007-6-29 12:20:08 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
> Is there any API to install security manager.> > Regards> Gtstatic System.setSecurityManager()
bujinwang at 2007-6-29 12:20:08 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 3

Thanks for your sugesstion. With this command "java -Djava.security.manager - Djava.security.policy=myPolicy" we are installing Security Manager and Policy file. What will be the minimum code for the above command, as I want to install dynamically (I mean how to spacify and install Security manager and policy files by programatically). Appreatiating anybodies sugesstion.

Regards

Gt

rkgeet at 2007-6-29 12:20:08 > top of Java-index,Security,Other Security APIs, Tools, and Issues...