Class GenerateKeyPairServlet

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

    public class GenerateKeyPairServlet
    extends CMSServlet
    GenerateKeyPairServlet handles "server-side key pair generation" requests from the netkey RA.
    Version:
    $Revision$, $Date$
    Author:
    Christina Fu (cfu)
    See Also:
    Serialized Form
    • Field Detail

      • mConfig

        protected javax.servlet.ServletConfig mConfig
      • ERROR

        public static int ERROR
      • mLogger

        protected Logger mLogger
    • Constructor Detail

      • GenerateKeyPairServlet

        public GenerateKeyPairServlet()
        Constructs GenerateKeyPair servlet.
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class CMSServlet
        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
        Returns:
        name of this servlet
      • process

        public void process​(CMSRequest cmsReq)
                     throws EBaseException
        Description copied from class: CMSServlet
        process an HTTP request. Servlets must override this with their own implementation
        Overrides:
        process in class CMSServlet
        Throws:
        EBaseException - if the servlet was unable to satisfactorily process the request
      • service

        public void service​(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse resp)
                     throws javax.servlet.ServletException,
                            java.io.IOException
        XXX remember tocheck peer SSL cert and get RA id later Serves HTTP admin request.
        Overrides:
        service in class CMSServlet
        Parameters:
        req - HTTP request
        resp - HTTP response
        Throws:
        javax.servlet.ServletException
        java.io.IOException