Class CMSAdminServlet

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

    public class CMSAdminServlet
    extends AdminServlet
    A class representings an administration servlet. This servlet is responsible to serve Certificate Server level administrative operations such as configuration parameter updates.
    Version:
    $Revision$, $Date$
    See Also:
    Serialized Form
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • CMSAdminServlet

        public CMSAdminServlet()
        Constructs CA servlet.
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Initializes this servlet.
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class AdminServlet
        Throws:
        javax.servlet.ServletException
      • getServletInfo

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

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

        public boolean isSubsystemInstalled​(java.lang.String subsystem)
      • getCertNickname

        public java.lang.String getCertNickname​(java.lang.String nickName)
      • modifyCACert

        public void modifyCACert​(javax.servlet.http.HttpServletRequest request,
                                 java.lang.String value)
                          throws EBaseException
        Throws:
        EBaseException
      • getCertConfigNickname

        public java.lang.String getCertConfigNickname​(java.lang.String val)
                                               throws EBaseException
        Throws:
        EBaseException
      • modifyRADMCert

        public void modifyRADMCert​(java.lang.String nickName)
      • modifyAgentGatewayCert

        public void modifyAgentGatewayCert​(java.lang.String nickName)
      • modifyEEGatewayCert

        public void modifyEEGatewayCert​(IRegistrationAuthority ra,
                                        java.lang.String nickName)
      • modifyCAGatewayCert

        public void modifyCAGatewayCert​(ICertificateAuthority ca,
                                        java.lang.String nickName)
      • setCANewnickname

        public void setCANewnickname​(java.lang.String tokenName,
                                     java.lang.String nickname)
                              throws EBaseException
        Throws:
        EBaseException
      • setOCSPNewnickname

        public void setOCSPNewnickname​(java.lang.String tokenName,
                                       java.lang.String nickname)
                                throws EBaseException
        Throws:
        EBaseException
      • issueImportCert

        public void issueImportCert​(javax.servlet.http.HttpServletRequest req,
                                    javax.servlet.http.HttpServletResponse resp)
                             throws javax.servlet.ServletException,
                                    java.io.IOException,
                                    EBaseException
        Issue import certificate

        • signed.audit LOGGING_SIGNED_AUDIT_CONFIG_TRUSTED_PUBLIC_KEY used when "Certificate Setup Wizard" is used to import CA certs into the certificate database
        Throws:
        javax.servlet.ServletException - a servlet error has occurred
        java.io.IOException - an input/output error has occurred
        EBaseException - failed to issue an import certificate
      • installCASigningCert

        public void installCASigningCert​(java.lang.String fullName,
                                         java.lang.String nickname,
                                         java.lang.String tokenName)
                                  throws EBaseException
        Throws:
        EBaseException
      • installOCSPSigningCert

        public void installOCSPSigningCert​(java.lang.String fullName,
                                           java.lang.String nickname,
                                           java.lang.String tokenName)
                                    throws EBaseException
        Throws:
        EBaseException
      • setRootCertTrust

        public void setRootCertTrust​(javax.servlet.http.HttpServletRequest req,
                                     javax.servlet.http.HttpServletResponse resp)
                              throws javax.servlet.ServletException,
                                     java.io.IOException,
                                     EBaseException
        Throws:
        javax.servlet.ServletException
        java.io.IOException
        EBaseException