Package org.bouncycastle.cert.ocsp
Class OCSPReqBuilder
- java.lang.Object
-
- org.bouncycastle.cert.ocsp.OCSPReqBuilder
-
public class OCSPReqBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OCSPReqBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OCSPReqBuilder
addRequest(CertificateID certId)
Add a request for the given CertificateID.OCSPReqBuilder
addRequest(CertificateID certId, org.bouncycastle.asn1.x509.Extensions singleRequestExtensions)
Add a request with extensionsOCSPReq
build()
Generate an unsigned requestOCSPReq
build(org.bouncycastle.operator.ContentSigner signer, X509CertificateHolder[] chain)
OCSPReqBuilder
setRequestExtensions(org.bouncycastle.asn1.x509.Extensions requestExtensions)
OCSPReqBuilder
setRequestorName(org.bouncycastle.asn1.x500.X500Name requestorName)
Set the requestor name to the passed in X500NameOCSPReqBuilder
setRequestorName(org.bouncycastle.asn1.x509.GeneralName requestorName)
-
-
-
Method Detail
-
addRequest
public OCSPReqBuilder addRequest(CertificateID certId)
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
public OCSPReqBuilder setRequestorName(org.bouncycastle.asn1.x500.X500Name requestorName)
Set the requestor name to the passed in X500Name- Parameters:
requestorName
- an X500Name representing the requestor name.
-
setRequestorName
public OCSPReqBuilder setRequestorName(org.bouncycastle.asn1.x509.GeneralName requestorName)
-
setRequestExtensions
public OCSPReqBuilder setRequestExtensions(org.bouncycastle.asn1.x509.Extensions requestExtensions)
-
build
public OCSPReq build() throws OCSPException
Generate an unsigned request- Returns:
- the OCSPReq
- Throws:
OCSPException
-
build
public OCSPReq build(org.bouncycastle.operator.ContentSigner signer, X509CertificateHolder[] chain) throws OCSPException, java.lang.IllegalArgumentException
- Throws:
OCSPException
java.lang.IllegalArgumentException
-
-