It's not a secret anymore!
The moose likes Java in General and the fly likes Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Security" Watch "Security" New topic


Kumar Kausikasa
Ranch Hand

Joined: Jun 04, 2002
Posts: 45
I did not see special security forum, so i am posting here. Sorry if this an irrelevant one.
Here is my problem:
When i want to use a policy file, i do this while starting the JVM :-
java security policy i want to use.
But istead of giving on the command line while running, I want to include this in the program itself , how can i do this?
since i am setting a property which is "", i saw the API of, but could not figure it out how to do
Can someone help me
Thanks for your time
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9058
Moving to Java in General (Intermediate)

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Try this:


Regards, Rene Larsen
Dropbox Invite
subject: Security
It's not a secret anymore!