Class PolicyAdminServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.netscape.cms.servlet.admin.AdminServlet
com.netscape.cms.servlet.admin.PolicyAdminServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PolicyAdminServlet extends AdminServlet
This class is an administration servlet for policy management. Each service (CA, KRA, RA) should be responsible for registering an instance of this with the remote administration subsystem.
Version:
$Revision$, $Date$
See Also:
  • Field Details

    • logger

      public static org.slf4j.Logger logger
    • PROP_AUTHORITY

      public static final String PROP_AUTHORITY
      See Also:
    • INFO

      public static final String INFO
      See Also:
    • PW_PASSWORD_CACHE_ADD

      public static final String PW_PASSWORD_CACHE_ADD
      See Also:
    • PROP_PREDICATE

      public static final String PROP_PREDICATE
      See Also:
    • mProcessor

      protected PolicyProcessor mProcessor
    • INVALID_POLICY_SCOPE

      public static String INVALID_POLICY_SCOPE
    • INVALID_POLICY_IMPL_OP

      public static String INVALID_POLICY_IMPL_OP
    • NYI

      public static String NYI
    • INVALID_POLICY_IMPL_CONFIG

      public static String INVALID_POLICY_IMPL_CONFIG
    • INVALID_POLICY_INSTANCE_CONFIG

      public static String INVALID_POLICY_INSTANCE_CONFIG
    • MISSING_POLICY_IMPL_ID

      public static String MISSING_POLICY_IMPL_ID
    • MISSING_POLICY_IMPL_CLASS

      public static String MISSING_POLICY_IMPL_CLASS
    • INVALID_POLICY_IMPL_ID

      public static String INVALID_POLICY_IMPL_ID
    • MISSING_POLICY_INST_ID

      public static String MISSING_POLICY_INST_ID
    • INVALID_POLICY_INST_ID

      public static String INVALID_POLICY_INST_ID
    • COMMA

      public static String COMMA
    • MISSING_POLICY_ORDERING

      public static String MISSING_POLICY_ORDERING
  • Constructor Details

    • PolicyAdminServlet

      public PolicyAdminServlet()
      Constructs administration servlet.
  • Method Details

    • getServletInfo

      public String getServletInfo()
      Returns serlvet information.
      Specified by:
      getServletInfo in interface javax.servlet.Servlet
      Overrides:
      getServletInfo in class javax.servlet.GenericServlet
    • getExtendedPluginInfo

      public NameValuePairs getExtendedPluginInfo(String implName, String instName)
    • service

      public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Serves HTTP admin request.
      Overrides:
      service in class AdminServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • processPolicyImplMgmt

      public void processPolicyImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Process Policy Implementation Management.
      Throws:
      javax.servlet.ServletException
      IOException
    • processPolicyRuleMgmt

      public void processPolicyRuleMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException
    • listPolicyImpls

      public void listPolicyImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException
    • listPolicyInstances

      public void listPolicyInstances(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException
    • deletePolicyImpl

      public void deletePolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Delete policy implementation

      • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
      Parameters:
      req - HTTP servlet request
      resp - HTTP servlet response
      Throws:
      javax.servlet.ServletException - a servlet error has occurred
      IOException - an input/output error has occurred
    • getPolicyImplConfig

      public void getPolicyImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException
    • addPolicyImpl

      public void addPolicyImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Add policy implementation

      • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
      Parameters:
      req - HTTP servlet request
      resp - HTTP servlet response
      Throws:
      javax.servlet.ServletException - a servlet error has occurred
      IOException - an input/output error has occurred
    • deletePolicyInstance

      public void deletePolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Delete policy instance

      • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
      Parameters:
      req - HTTP servlet request
      resp - HTTP servlet response
      Throws:
      javax.servlet.ServletException - a servlet error has occurred
      IOException - an input/output error has occurred
    • getPolicyInstanceConfig

      public void getPolicyInstanceConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException
    • putUserPWPair

      public void putUserPWPair(String combo)
    • addPolicyInstance

      public void addPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Add policy instance

      • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
      Parameters:
      req - HTTP servlet request
      resp - HTTP servlet response
      Throws:
      javax.servlet.ServletException - a servlet error has occurred
      IOException - an input/output error has occurred
    • changePolicyInstanceOrdering

      public void changePolicyInstanceOrdering(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Change ordering of policy instances

      • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
      Parameters:
      req - HTTP servlet request
      resp - HTTP servlet response
      Throws:
      javax.servlet.ServletException - a servlet error has occurred
      IOException - an input/output error has occurred
    • modifyPolicyInstance

      public void modifyPolicyInstance(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Modify policy instance

      • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_CERT_POLICY used when configuring cert policy constraints and extensions
      Parameters:
      req - HTTP servlet request
      resp - HTTP servlet response
      Throws:
      javax.servlet.ServletException - a servlet error has occurred
      IOException - an input/output error has occurred