Class RegisterUser

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

    public class RegisterUser
    extends CMSServlet
    This servlet creates a TPS user in the CA, and it associates TPS's server certificate to the user. Finally, it addes the user to the administrator group. This procedure will allows TPS to connect to the CA for certificate issuance.
    See Also:
    Serialized Form
    • Constructor Detail

      • RegisterUser

        public RegisterUser()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig sc)
                  throws javax.servlet.ServletException
        initialize the servlet.
        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
      • setDefaultTemplates

        protected void setDefaultTemplates​(javax.servlet.ServletConfig sc)
        Description copied from class: CMSServlet
        set default templates. subclasses can override, and should override at least the success template
        Overrides:
        setDefaultTemplates in class CMSServlet
      • renderResult

        protected void renderResult​(CMSRequest cmsReq)
                             throws java.io.IOException
        Description copied from class: CMSServlet
        Output a template. If an error occurs while outputing the template the exception template is used to display the error.
        Overrides:
        renderResult in class CMSServlet
        Parameters:
        cmsReq - the CS request
        Throws:
        java.io.IOException
      • getLocale

        protected java.util.Locale getLocale​(javax.servlet.http.HttpServletRequest req)
        Retrieves locale based on the request.
        Overrides:
        getLocale in class CMSServlet