Class ScepServletImpl
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.jscep.server.ScepServlet
-
- de.trustable.ca3s.core.web.scepservlet.ScepServletImpl
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@Controller public class ScepServletImpl extends org.jscep.server.ScepServleta delegating servlet forwarding the SCEP requests to the backend.- Author:
- ak
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ThreadLocal<Pipeline>threadLocalPipeline
-
Constructor Summary
Constructors Constructor Description ScepServletImpl(AuditService auditService, PipelineUtil pipelineUtil, ReplacementCandidateUtil replacementCandidateUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<org.jscep.transport.response.Capability>doCapabilities(String identifier)protected List<X509Certificate>doEnrol(org.bouncycastle.pkcs.PKCS10CertificationRequest csr, X509Certificate sender, org.jscep.transaction.TransactionId transId)protected List<X509Certificate>doGetCaCertificate(String identifier)protected List<X509Certificate>doGetCert(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serial)protected List<X509Certificate>doGetCertInitial(org.bouncycastle.asn1.x500.X500Name issuer, org.bouncycastle.asn1.x500.X500Name subject, org.jscep.transaction.TransactionId transId)protected X509CRLdoGetCrl(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serial)protected List<X509Certificate>getNextCaCertificate(String identifier)protected X509CertificategetRecipient()protected PrivateKeygetRecipientKey()protected X509CertificategetSigner()protected X509Certificate[]getSignerCertificateChain()protected PrivateKeygetSignerKey()voidinit()StringtruncatePassword(String password)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
threadLocalPipeline
public ThreadLocal<Pipeline> threadLocalPipeline
-
-
Constructor Detail
-
ScepServletImpl
public ScepServletImpl(AuditService auditService, PipelineUtil pipelineUtil, ReplacementCandidateUtil replacementCandidateUtil)
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.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:
doEnrolin classorg.jscep.server.ScepServlet- Throws:
org.jscep.transaction.OperationFailureException
-
doGetCaCertificate
protected List<X509Certificate> doGetCaCertificate(String identifier) throws org.jscep.transaction.OperationFailureException
- Specified by:
doGetCaCertificatein classorg.jscep.server.ScepServlet- Throws:
org.jscep.transaction.OperationFailureException
-
doGetCrl
protected X509CRL doGetCrl(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serial)
- Specified by:
doGetCrlin classorg.jscep.server.ScepServlet
-
doCapabilities
protected Set<org.jscep.transport.response.Capability> doCapabilities(String identifier)
- Specified by:
doCapabilitiesin classorg.jscep.server.ScepServlet
-
doGetCert
protected List<X509Certificate> doGetCert(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serial) throws org.jscep.transaction.OperationFailureException
- Specified by:
doGetCertin classorg.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:
doGetCertInitialin classorg.jscep.server.ScepServlet
-
getNextCaCertificate
protected List<X509Certificate> getNextCaCertificate(String identifier)
- Specified by:
getNextCaCertificatein classorg.jscep.server.ScepServlet
-
getRecipientKey
protected PrivateKey getRecipientKey()
- Specified by:
getRecipientKeyin classorg.jscep.server.ScepServlet
-
getRecipient
protected X509Certificate getRecipient()
- Specified by:
getRecipientin classorg.jscep.server.ScepServlet
-
getSignerKey
protected PrivateKey getSignerKey()
- Specified by:
getSignerKeyin classorg.jscep.server.ScepServlet
-
getSigner
protected X509Certificate getSigner()
- Specified by:
getSignerin classorg.jscep.server.ScepServlet
-
getSignerCertificateChain
protected X509Certificate[] getSignerCertificateChain()
- Specified by:
getSignerCertificateChainin classorg.jscep.server.ScepServlet
-
-