Policytool is a utility program which can be used to view and edit the contents of policy files. Policytool is part of the Harmony SE project, and the executable is located at the /bin and /jre/bin directories.

A policy file is a plain-text file with a .policy extension, that maps remote requestors by domain, to permission objects. Policytool is implemented in Java, therefore making it easier to call it from java programs, to reuse its parts, and is ready as-is for cross platform usage.

It basically has only one command line parameter: the policy file name to load by default. Syntax:

It is compatible with Sun's policytool, and comes with new features:

The UI of the original policytool looks quite simple as it does not uses swing components or any other external libraries. Policytool is implemented with swing therefore giving a richer UI:

Check out the policytool development page: PolicytoolDev

Link to the Sun's policytool reference page: http://java.sun.com/javase/6/docs/technotes/tools/windows/policytool.html

Policytool (last edited 2009-09-20 21:55:07 by localhost)