File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » Security
Bookmark "policy question" Watch "policy question" New topic

policy question

karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
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:
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.
Cindy Glass
"The Hood"

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.
I agree. Here's the link:
subject: policy question
It's not a secret anymore!