public class OCSPRespBuilder extends Object
| Constructor and Description |
|---|
OCSPRespBuilder(ResponderID responderId)
basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResponse(CertID certId,
byte[] certStatus,
Date thisUpdate,
Date nextUpdate,
Extensions singleExtensions)
Add a response for a particular Certificate ID.
|
byte[] |
buildOCSPResponse(org.xipki.security.ConcurrentContentSigner signer,
TaggedCertSequence taggedCertSequence,
Date producedAt) |
void |
setResponseExtensions(Extensions responseExtensions)
Set the extensions for the response.
|
public OCSPRespBuilder(ResponderID responderId)
responderId - Responder IDpublic void addResponse(CertID certId, byte[] certStatus, Date thisUpdate, Date nextUpdate, Extensions 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(Extensions responseExtensions)
responseExtensions - the extension object to carry.public byte[] buildOCSPResponse(org.xipki.security.ConcurrentContentSigner signer,
TaggedCertSequence taggedCertSequence,
Date producedAt)
throws org.bouncycastle.cert.ocsp.OCSPException,
org.xipki.security.NoIdleSignerException
org.bouncycastle.cert.ocsp.OCSPExceptionorg.xipki.security.NoIdleSignerExceptionCopyright © 2019. All rights reserved.