Using JavaScript for Policies602 Netscape Certificate Management System Installation and Setup Guide • October 2001Using JavaScript for PoliciesCertificate Management System includes a facility for complex scripting of thepolicy plug-in instances via JavaScriptTM. Using the JavaScript policy processorallows you to:• Determine the call sequence of existing Java plug-ins• Use complex logic to determine whether to call a plug-in (versus the simplerpredicates)• Write policies in JavaScript• Develop extensions without needing to know Java or have the Java SDKCertificate Management System uses the Rhino JavaScript engine fromMozilla.org. You can get more details about the Rhino project from this site:http://www.mozilla.org/rhinoTo learn more about how to use JavaScript in Certificate Management System,consult the sample policy.js file included in the distribution:/bin/cert/js/policy.jsManaging Policy Plug-in ModulesThis section explains how to use the CMS window to perform the followingoperations:• Registering a Policy Module• Deleting a Policy ModuleFor information on adding or changing policy-specific information in theconfiguration file, see “Changing the Configuration by Editing the ConfigurationFile” on page 349.Registering a Policy ModuleYou 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 andthe 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 RecoveryManager’s policy framework: com.netscape.policy.KeyArchivalPolicy