This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Security and the fly likes policy question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "policy question" Watch "policy question" New topic
Author

policy question

karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
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

Joined: Sep 29, 2000
Posts: 8521
Moving to the Security forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
there is a security forum....sory, missed that one.
k
 
 
subject: policy question