public class

BasicOCSPRespGenerator

extends Object
java.lang.Object
   ↳ org.bouncycastle.ocsp.BasicOCSPRespGenerator

Class Overview

Generator for basic OCSP response objects.

Summary

Public Constructors
BasicOCSPRespGenerator(RespID responderID)
basic constructor
BasicOCSPRespGenerator(PublicKey key)
construct with the responderID to be the SHA-1 keyHash of the passed in public key.
Public Methods
void addResponse(CertificateID certID, CertificateStatus certStatus, Date nextUpdate, X509Extensions singleExtensions)
Add a response for a particular Certificate ID.
void addResponse(CertificateID certID, CertificateStatus certStatus, Date thisUpdate, Date nextUpdate, X509Extensions singleExtensions)
Add a response for a particular Certificate ID.
void addResponse(CertificateID certID, CertificateStatus certStatus, X509Extensions singleExtensions)
Add a response for a particular Certificate ID.
void addResponse(CertificateID certID, CertificateStatus certStatus)
Add a response for a particular Certificate ID.
BasicOCSPResp generate(String signingAlgorithm, PrivateKey key, X509Certificate[] chain, Date producedAt, String provider, SecureRandom random)
BasicOCSPResp generate(String signingAlgorithm, PrivateKey key, X509Certificate[] chain, Date thisUpdate, String provider)
Iterator getSignatureAlgNames()
Return an iterator of the signature names supported by the generator.
void setResponseExtensions(X509Extensions responseExtensions)
Set the extensions for the response.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BasicOCSPRespGenerator (RespID responderID)

basic constructor

public BasicOCSPRespGenerator (PublicKey key)

construct with the responderID to be the SHA-1 keyHash of the passed in public key.

Throws
OCSPException

Public Methods

public void addResponse (CertificateID certID, CertificateStatus certStatus, Date nextUpdate, X509Extensions singleExtensions)

Add a response for a particular Certificate ID.

Parameters
certID certificate ID details
certStatus status of the certificate - null if okay
nextUpdate date when next update should be requested
singleExtensions optional extensions

public void addResponse (CertificateID certID, CertificateStatus certStatus, Date thisUpdate, Date nextUpdate, X509Extensions singleExtensions)

Add a response for a particular Certificate ID.

Parameters
certID certificate ID details
certStatus status of the certificate - null if okay
thisUpdate date this response was valid on
nextUpdate date when next update should be requested
singleExtensions optional extensions

public void addResponse (CertificateID certID, CertificateStatus certStatus, X509Extensions singleExtensions)

Add a response for a particular Certificate ID.

Parameters
certID certificate ID details
certStatus status of the certificate - null if okay
singleExtensions optional extensions

public void addResponse (CertificateID certID, CertificateStatus certStatus)

Add a response for a particular Certificate ID.

Parameters
certID certificate ID details
certStatus status of the certificate - null if okay

public BasicOCSPResp generate (String signingAlgorithm, PrivateKey key, X509Certificate[] chain, Date producedAt, String provider, SecureRandom random)

public BasicOCSPResp generate (String signingAlgorithm, PrivateKey key, X509Certificate[] chain, Date thisUpdate, String provider)

public Iterator getSignatureAlgNames ()

Return an iterator of the signature names supported by the generator.

Returns
  • an iterator containing recognised names.

public void setResponseExtensions (X509Extensions responseExtensions)

Set the extensions for the response.

Parameters
responseExtensions the extension object to carry.