Class OCSPServlet

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

    public class OCSPServlet
    extends CMSServlet
    Process OCSP messages, According to RFC 2560 See http://www.ietf.org/rfc/rfc2560.txt
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • PROP_MAX_REQUEST_SIZE

        public static final java.lang.String PROP_MAX_REQUEST_SIZE
        See Also:
        Constant Field Values
    • Constructor Detail

      • OCSPServlet

        public OCSPServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig sc)
                  throws javax.servlet.ServletException
        initialize the servlet. This servlet uses the template file "ImportCert.template" to process the response.
        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. This method is invoked when the OCSP service receives a OCSP request. Based on RFC 2560, the request should have the OCSP request in the HTTP body as binary blob.
        Overrides:
        process in class CMSServlet
        Parameters:
        cmsReq - the object holding the request and response information
        Throws:
        EBaseException - if the servlet was unable to satisfactorily process the request