Class ProcessCertReq

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class ProcessCertReq
    extends CMSServlet
    Agent operations on Certificate requests. This servlet is used by an Agent to approve, reject, reassign, or change a certificate request.
    Version:
    $Revision$, $Date$
    See Also:
    Serialized Form
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • GRANT_TRUSTEDMGR_PRIVILEGE

        public static final java.lang.String GRANT_TRUSTEDMGR_PRIVILEGE
        See Also:
        Constant Field Values
      • GRANT_CMAGENT_PRIVILEGE

        public static final java.lang.String GRANT_CMAGENT_PRIVILEGE
        See Also:
        Constant Field Values
      • GRANT_RMAGENT_PRIVILEGE

        public static final java.lang.String GRANT_RMAGENT_PRIVILEGE
        See Also:
        Constant Field Values
      • GRANT_DRMAGENT_PRIVILEGE

        public static final java.lang.String GRANT_DRMAGENT_PRIVILEGE
        See Also:
        Constant Field Values
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig sc)
                  throws javax.servlet.ServletException
        initialize the servlet. This servlet uses the template file "processCertReq.template" to process the response.
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class CMSServlet
        Parameters:
        sc - servlet configuration, read from the web.xml file
        Throws:
        javax.servlet.ServletException
      • process

        public void process​(CMSRequest cmsReq)
                     throws EBaseException
        Process the HTTP request.
        • http.param seqNum request id
        • http.param notValidBefore certificate validity - notBefore - in seconds since jan 1, 1970
        • http.param notValidAfter certificate validity - notAfter - in seconds since jan 1, 1970
        • http.param subject certificate subject name
        • http.param toDo requested action (can be one of: clone, reject, accept, cancel)
        • http.param signatureAlgorithm certificate signing algorithm
        • http.param addExts base-64, DER encoded Extension or SEQUENCE OF Extensions to add to certificate
        • http.param pathLenConstraint integer path length constraint to use in BasicConstraint extension if applicable
        Overrides:
        process in class CMSServlet
        Parameters:
        cmsReq - the object holding the request and response information
        Throws:
        EBaseException - if the servlet was unable to satisfactorily process the request