Can Java security policy question

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top