Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

policy question

 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have question regarding policy files.
all of my application is in a jar file (eg. app.jar), the directory structure might be like this:
app/lib/app.jar
app/lib/somotherJarFiles.jar
app/conf/app.properties
app/conf/app.policy
app/build.xml
i start the whole app trough a target in the ant build.xml file. in my app.jar i have packages that should be allowed to perform file io, others shouldnt. (eg: all classes in test.good are allowed while all classes in test.bad are disallowed)
so here is my question: what should the "codebase" in the policy file look like ?
i tried to build a policy with the policytool but i m not sure on the codebase...
thanks a lot.
karl
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Security forum.
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is a security forum....sory, missed that one.
k
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic