org.bouncycastle.ocsp
Class OCSPReqGenerator
java.lang.Object
org.bouncycastle.ocsp.OCSPReqGenerator
public class OCSPReqGenerator
extends java.lang.Object
addRequest
public void addRequest(CertificateID certId)
Add a request for the given CertificateID.
certId
- certificate ID of interest
addRequest
public void addRequest(CertificateID certId,
X509Extensions singleRequestExtensions)
Add a request with extensions
certId
- certificate ID of interestsingleRequestExtensions
- the extensions to attach to the request
generate
public OCSPReq generate(String signingAlgorithm,
PrivateKey key,
X509Certificate[] chain,
String provider)
throws OCSPException,
NoSuchProviderException,
IllegalArgumentException
generate
public OCSPReq generate(String signingAlgorithm,
PrivateKey key,
X509Certificate[] chain,
String provider,
SecureRandom random)
throws OCSPException,
NoSuchProviderException,
IllegalArgumentException
getSignatureAlgNames
public Iterator getSignatureAlgNames()
Return an iterator of the signature names supported by the generator.
- an iterator containing recognised names.
setRequestExtensions
public void setRequestExtensions(X509Extensions requestExtensions)
setRequestorName
public void setRequestorName(X500Principal requestorName)
Set the requestor name to the passed in X500Principal
requestorName
- a X500Principal representing the requestor name.
setRequestorName
public void setRequestorName(GeneralName requestorName)