org.bouncycastle.ocsp
public class BasicOCSPRespGenerator extends Object
| Constructor Summary | |
|---|---|
| BasicOCSPRespGenerator(RespID responderID)
basic constructor | |
| BasicOCSPRespGenerator(PublicKey key)
construct with the responderID to be the SHA-1 keyHash of the passed in public key. | |
| Method Summary | |
|---|---|
| void | addResponse(CertificateID certID, CertificateStatus certStatus)
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, 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.
|
| BasicOCSPResp | generate(String signingAlgorithm, PrivateKey key, X509Certificate[] chain, Date thisUpdate, String provider) |
| BasicOCSPResp | generate(String signingAlgorithm, PrivateKey key, X509Certificate[] chain, Date producedAt, String provider, SecureRandom random) |
| Iterator | getSignatureAlgNames()
Return an iterator of the signature names supported by the generator.
|
| void | setResponseExtensions(X509Extensions responseExtensions)
Set the extensions for the response.
|
Parameters: certID certificate ID details certStatus status of the certificate - null if okay
Parameters: certID certificate ID details certStatus status of the certificate - null if okay singleExtensions optional extensions
Parameters: certID certificate ID details nextUpdate date when next update should be requested certStatus status of the certificate - null if okay singleExtensions optional extensions
Parameters: certID certificate ID details thisUpdate date this response was valid on nextUpdate date when next update should be requested certStatus status of the certificate - null if okay singleExtensions optional extensions
Returns: an iterator containing recognised names.
Parameters: responseExtensions the extension object to carry.