This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security

 
Kumar Kausikasa
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 -Djava.security.policy=the 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 "java.security.policy", i saw the API of java.security.Policy, but could not figure it out how to do
Can someone help me
Thanks for your time
Praveen.
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java in General (Intermediate)
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:

Rene
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic