Class ScepServletImpl

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

    @Controller
    public class ScepServletImpl
    extends org.jscep.server.ScepServlet
    a delegating servlet forwarding the SCEP requests to the backend.
    Author:
    ak
    See Also:
    Serialized Form
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • doEnrol

        protected List<X509Certificate> doEnrol​(org.bouncycastle.pkcs.PKCS10CertificationRequest csr,
                                                X509Certificate sender,
                                                org.jscep.transaction.TransactionId transId)
                                         throws org.jscep.transaction.OperationFailureException
        Specified by:
        doEnrol in class org.jscep.server.ScepServlet
        Throws:
        org.jscep.transaction.OperationFailureException
      • truncatePassword

        public String truncatePassword​(String password)
      • doGetCaCertificate

        protected List<X509Certificate> doGetCaCertificate​(String identifier)
                                                    throws org.jscep.transaction.OperationFailureException
        Specified by:
        doGetCaCertificate in class org.jscep.server.ScepServlet
        Throws:
        org.jscep.transaction.OperationFailureException
      • doGetCrl

        protected X509CRL doGetCrl​(org.bouncycastle.asn1.x500.X500Name issuer,
                                   BigInteger serial)
        Specified by:
        doGetCrl in class org.jscep.server.ScepServlet
      • doCapabilities

        protected Set<org.jscep.transport.response.Capability> doCapabilities​(String identifier)
        Specified by:
        doCapabilities in class org.jscep.server.ScepServlet
      • doGetCert

        protected List<X509Certificate> doGetCert​(org.bouncycastle.asn1.x500.X500Name issuer,
                                                  BigInteger serial)
                                           throws org.jscep.transaction.OperationFailureException
        Specified by:
        doGetCert in class org.jscep.server.ScepServlet
        Throws:
        org.jscep.transaction.OperationFailureException
      • doGetCertInitial

        protected List<X509Certificate> doGetCertInitial​(org.bouncycastle.asn1.x500.X500Name issuer,
                                                         org.bouncycastle.asn1.x500.X500Name subject,
                                                         org.jscep.transaction.TransactionId transId)
        Specified by:
        doGetCertInitial in class org.jscep.server.ScepServlet
      • getNextCaCertificate

        protected List<X509Certificate> getNextCaCertificate​(String identifier)
        Specified by:
        getNextCaCertificate in class org.jscep.server.ScepServlet
      • getRecipientKey

        protected PrivateKey getRecipientKey()
        Specified by:
        getRecipientKey in class org.jscep.server.ScepServlet
      • getRecipient

        protected X509Certificate getRecipient()
        Specified by:
        getRecipient in class org.jscep.server.ScepServlet
      • getSignerKey

        protected PrivateKey getSignerKey()
        Specified by:
        getSignerKey in class org.jscep.server.ScepServlet
      • getSigner

        protected X509Certificate getSigner()
        Specified by:
        getSigner in class org.jscep.server.ScepServlet
      • getSignerCertificateChain

        protected X509Certificate[] getSignerCertificateChain()
        Specified by:
        getSignerCertificateChain in class org.jscep.server.ScepServlet