Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Policy file, grant all?

 
Amund Frislie
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone please tell me whether a policy file containing only:
grant {
permission java.security.AllPermission;
};
is acceptable for a "production environment" (as mentioned in the instructions)?
Thanks.
Amund
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's all mine had.
Mark
 
Reshma Das
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use of policy file. can u pls explain it to me. my application works fine with any policy tool . why do we need it?
thanks in advance,
reshma
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's just a simple way of making premissions for particular things to the SecurityManager. It is like a properties file. It will translate the entries into Permission objects.
I think there is a Security API tutorial at www.javasoft.com that probably could explain it better.
Mark
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!