Class PKIProcessor

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void audit​(com.netscape.certsrv.logging.LogEvent event)  
      protected void audit​(java.lang.String msg)
      Signed Audit Log This method is inherited by all extended "CMSServlet"s, and is called to store messages to the signed audit log.
      protected java.lang.String auditSubjectID()
      Signed Audit Log Subject ID This method is inherited by all extended "CMSServlet"s, and is called to obtain the "SubjectID" for a signed audit log message.
      protected void fillCertInfo​(java.lang.String protocolString, org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo, com.netscape.certsrv.authentication.IAuthToken authToken, IArgBlock httpParams)  
      protected org.mozilla.jss.netscape.security.x509.X509CertInfo[] fillCertInfoArray​(java.lang.String protocolString, com.netscape.certsrv.authentication.IAuthToken authToken, IArgBlock httpParams, com.netscape.certsrv.request.IRequest req)  
      static void fillCertInfoFromAuthToken​(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo, com.netscape.certsrv.authentication.IAuthToken authToken)
      fill subject name, validity, extensions from authoken if any, overriding what was in pkcs10.
      static void fillCertInfoFromForm​(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo, IArgBlock httpParams)
      fill subject name, extension from form.
      static void fillValidityFromForm​(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo, IArgBlock httpParams)  
      void process​(com.netscape.certsrv.common.ICMSRequest cmsReq)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • ADMIN_ENROLL_SERVLET_ID

        public static final java.lang.String ADMIN_ENROLL_SERVLET_ID
        See Also:
        Constant Field Values
      • SUBJECT_KEYGEN_INFO

        public static final java.lang.String SUBJECT_KEYGEN_INFO
        See Also:
        Constant Field Values
      • mRequest

        protected com.netscape.certsrv.common.ICMSRequest mRequest
      • httpReq

        protected javax.servlet.http.HttpServletRequest httpReq
      • mServletId

        protected java.lang.String mServletId
    • Constructor Detail

      • PKIProcessor

        public PKIProcessor()
      • PKIProcessor

        public PKIProcessor​(com.netscape.certsrv.common.ICMSRequest cmsReq,
                            CMSServlet servlet)
    • Method Detail

      • fillCertInfo

        protected void fillCertInfo​(java.lang.String protocolString,
                                    org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo,
                                    com.netscape.certsrv.authentication.IAuthToken authToken,
                                    IArgBlock httpParams)
                             throws EBaseException
        Throws:
        EBaseException
      • fillCertInfoArray

        protected org.mozilla.jss.netscape.security.x509.X509CertInfo[] fillCertInfoArray​(java.lang.String protocolString,
                                                                                          com.netscape.certsrv.authentication.IAuthToken authToken,
                                                                                          IArgBlock httpParams,
                                                                                          com.netscape.certsrv.request.IRequest req)
                                                                                   throws EBaseException
        Throws:
        EBaseException
      • fillCertInfoFromAuthToken

        public static void fillCertInfoFromAuthToken​(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo,
                                                     com.netscape.certsrv.authentication.IAuthToken authToken)
                                              throws EBaseException
        fill subject name, validity, extensions from authoken if any, overriding what was in pkcs10. fill subject name, extensions from http input if not authenticated. requests not authenticated will need to be approved by an agent.
        Throws:
        EBaseException
      • fillCertInfoFromForm

        public static void fillCertInfoFromForm​(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo,
                                                IArgBlock httpParams)
                                         throws EBaseException
        fill subject name, extension from form. this is done for unauthenticated requests. unauthenticated requests must be approved by agents so these will all be seen by and agent.
        Throws:
        EBaseException
      • fillValidityFromForm

        public static void fillValidityFromForm​(org.mozilla.jss.netscape.security.x509.X509CertInfo certInfo,
                                                IArgBlock httpParams)
                                         throws EBaseException
        Throws:
        EBaseException
      • audit

        protected void audit​(java.lang.String msg)
        Signed Audit Log This method is inherited by all extended "CMSServlet"s, and is called to store messages to the signed audit log.

        Parameters:
        msg - signed audit log message
      • audit

        protected void audit​(com.netscape.certsrv.logging.LogEvent event)
      • auditSubjectID

        protected java.lang.String auditSubjectID()
        Signed Audit Log Subject ID This method is inherited by all extended "CMSServlet"s, and is called to obtain the "SubjectID" for a signed audit log message.

        Returns:
        id string containing the signed audit log message SubjectID