|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.ocsp.BasicOCSPRespGenerator
public class BasicOCSPRespGenerator
Generator for basic OCSP response objects.
Constructor Summary | |
---|---|
BasicOCSPRespGenerator(java.security.PublicKey key)
construct with the responderID to be the SHA-1 keyHash of the passed in public key. |
|
BasicOCSPRespGenerator(RespID responderID)
basic constructor |
Method Summary | |
---|---|
void |
addResponse(CertificateID certID,
CertificateStatus certStatus)
Add a response for a particular Certificate ID. |
void |
addResponse(CertificateID certID,
CertificateStatus certStatus,
java.util.Date thisUpdate,
java.util.Date nextUpdate,
X509Extensions singleExtensions)
Add a response for a particular Certificate ID. |
void |
addResponse(CertificateID certID,
CertificateStatus certStatus,
java.util.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. |
BasicOCSPResp |
generate(java.lang.String signingAlgorithm,
java.security.PrivateKey key,
java.security.cert.X509Certificate[] chain,
java.util.Date thisUpdate,
java.lang.String provider)
|
BasicOCSPResp |
generate(java.lang.String signingAlgorithm,
java.security.PrivateKey key,
java.security.cert.X509Certificate[] chain,
java.util.Date producedAt,
java.lang.String provider,
java.security.SecureRandom random)
|
java.util.Iterator |
getSignatureAlgNames()
Return an iterator of the signature names supported by the generator. |
void |
setResponseExtensions(X509Extensions responseExtensions)
Set the extensions for the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicOCSPRespGenerator(RespID responderID)
public BasicOCSPRespGenerator(java.security.PublicKey key) throws OCSPException
OCSPException
Method Detail |
---|
public void addResponse(CertificateID certID, CertificateStatus certStatus)
certID
- certificate ID detailscertStatus
- status of the certificate - null if okaypublic void addResponse(CertificateID certID, CertificateStatus certStatus, X509Extensions singleExtensions)
certID
- certificate ID detailscertStatus
- status of the certificate - null if okaysingleExtensions
- optional extensionspublic void addResponse(CertificateID certID, CertificateStatus certStatus, java.util.Date nextUpdate, X509Extensions singleExtensions)
certID
- certificate ID detailsnextUpdate
- date when next update should be requestedcertStatus
- status of the certificate - null if okaysingleExtensions
- optional extensionspublic void addResponse(CertificateID certID, CertificateStatus certStatus, java.util.Date thisUpdate, java.util.Date nextUpdate, X509Extensions singleExtensions)
certID
- certificate ID detailsthisUpdate
- date this response was valid onnextUpdate
- date when next update should be requestedcertStatus
- status of the certificate - null if okaysingleExtensions
- optional extensionspublic void setResponseExtensions(X509Extensions responseExtensions)
responseExtensions
- the extension object to carry.public BasicOCSPResp generate(java.lang.String signingAlgorithm, java.security.PrivateKey key, java.security.cert.X509Certificate[] chain, java.util.Date thisUpdate, java.lang.String provider) throws OCSPException, java.security.NoSuchProviderException, java.lang.IllegalArgumentException
OCSPException
java.security.NoSuchProviderException
java.lang.IllegalArgumentException
public BasicOCSPResp generate(java.lang.String signingAlgorithm, java.security.PrivateKey key, java.security.cert.X509Certificate[] chain, java.util.Date producedAt, java.lang.String provider, java.security.SecureRandom random) throws OCSPException, java.security.NoSuchProviderException, java.lang.IllegalArgumentException
OCSPException
java.security.NoSuchProviderException
java.lang.IllegalArgumentException
public java.util.Iterator getSignatureAlgNames()
|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |