Package org.bouncycastle.cert.ocsp
Class OCSPReqBuilder
java.lang.Object
org.bouncycastle.cert.ocsp.OCSPReqBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddRequest
(CertificateID certId) Add a request for the given CertificateID.addRequest
(CertificateID certId, org.bouncycastle.asn1.x509.Extensions singleRequestExtensions) Add a request with extensionsbuild()
Generate an unsigned requestbuild
(ContentSigner signer, X509CertificateHolder[] chain) setRequestExtensions
(org.bouncycastle.asn1.x509.Extensions requestExtensions) setRequestorName
(org.bouncycastle.asn1.x500.X500Name requestorName) Set the requestor name to the passed in X500NamesetRequestorName
(org.bouncycastle.asn1.x509.GeneralName requestorName)
-
Constructor Details
-
OCSPReqBuilder
public OCSPReqBuilder()
-
-
Method Details
-
addRequest
Add a request for the given CertificateID.- Parameters:
certId
- certificate ID of interest
-
addRequest
public OCSPReqBuilder addRequest(CertificateID certId, org.bouncycastle.asn1.x509.Extensions singleRequestExtensions) Add a request with extensions- Parameters:
certId
- certificate ID of interestsingleRequestExtensions
- the extensions to attach to the request
-
setRequestorName
Set the requestor name to the passed in X500Name- Parameters:
requestorName
- an X500Name representing the requestor name.
-
setRequestorName
-
setRequestExtensions
-
build
Generate an unsigned request- Returns:
- the OCSPReq
- Throws:
OCSPException
-
build
public OCSPReq build(ContentSigner signer, X509CertificateHolder[] chain) throws OCSPException, IllegalArgumentException
-