Using JavaScript for Policies
582
Netscape Certificate Management System Installation and Setup Guide • March 2002
Using JavaScript for Policies
Certificate Management System includes a facility for complex scripting of the
policy plug-in instances via JavaScript
TM
. Using the JavaScript policy processor
allows you to:
•
Determine the call sequence of existing Java plug-ins
•
Use complex logic to determine whether to call a plug-in (versus the simpler
predicates)
•
Write policies in JavaScript
•
Develop extensions without needing to know Java or have the Java SDK
Certificate Management System uses the Rhino JavaScript engine from
Mozilla.org
. You can get more details about the Rhino project from this site:
http://www.mozilla.org/rhino
To learn more about how to use JavaScript in Certificate Management System,
consult the sample
policy.js
file included in the distribution:
<server_root>/bin/cert/profiles/policy.js
Managing Policy Plug-in Modules
This section explains how to use the CMS window to perform the following
operations:
•
Registering a Policy Module
•
Deleting a Policy Module
For information on adding or changing policy-specific information in the
configuration file, see “Changing the Configuration by Editing the Configuration
File” on page 338.
Registering a Policy Module
You can register new policy plug-in modules in a subsystem’s policy framework.
Registering a new policy module involves specifying the name of the module and
the full name of the Java class that implements the policy interface. For example,
you can add a policy implementation, named as follows, to the Data Recovery
Manager’s policy framework:
com.netscape.policy.KeyArchivalPolicy
Summary of Contents for NETSCAPE MANAGEMENT SYSTEM 6.0
Page 1: ...Installation and Setup Guide Netscape Certificate Management System Version6 0 March 2002...
Page 22: ...22 Netscape Certificate Management System Installation and Setup Guide March 2002...
Page 32: ...32 Netscape Certificate Management System Installation and Setup Guide March 2002...
Page 160: ...160 Netscape Certificate Management System Installation and Setup Guide March 2002...
Page 776: ...776 Netscape Certificate Management System Installation and Setup Guide March 2002...
Page 807: ...807 Part 5 Appendix Appendix A Certificate Download Specification...
Page 808: ...808 Netscape Certificate Management System Installation and Setup Guide March 2002...
Page 830: ...830 Netscape Certificate Management System Installation and Setup Guide March 2002...