Class RegisterUser

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.netscape.cms.servlet.base.CMSServlet
com.netscape.cms.servlet.csadmin.RegisterUser
All Implemented Interfaces:
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:
  • Field Details

    • logger

      public static org.slf4j.Logger logger
  • Constructor Details

    • RegisterUser

      public RegisterUser()
  • Method Details

    • 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
    • process

      protected void process(CMSRequest cmsReq) throws EBaseException
      Process the HTTP request.
      Overrides:
      process in class CMSServlet
      Throws:
      EBaseException - if the servlet was unable to satisfactorily process the request
    • 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
    • renderTemplate

      protected void renderTemplate(CMSRequest cmsReq, String templateName, ICMSTemplateFiller filler) throws IOException
      Overrides:
      renderTemplate in class CMSServlet
      Throws:
      IOException
    • renderResult

      protected void renderResult(CMSRequest cmsReq) throws 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:
      IOException
    • getLocale

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