Interface IBasicOCSPRespBuilder
- All Known Implementing Classes:
-
BasicOCSPRespBuilderBC,BasicOCSPRespBuilderBCFips
public interface IBasicOCSPRespBuilder
This interface represents the wrapper for BasicOCSPRespBuilder that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
-
Method Summary
Modifier and TypeMethodDescriptionaddResponse(ICertificateID certID, ICertificateStatus certificateStatus, Date time, Date time1, IExtensions extensions) Calls actualaddResponsemethod for the wrapped BasicOCSPRespBuilder object.build(IContentSigner signer, IX509CertificateHolder[] chain, Date time) Calls actualbuildmethod for the wrapped BasicOCSPRespBuilder object.setResponseExtensions(IExtensions extensions) Calls actualsetResponseExtensionsmethod for the wrapped BasicOCSPRespBuilder object.
-
Method Details
-
setResponseExtensions
Calls actualsetResponseExtensionsmethod for the wrapped BasicOCSPRespBuilder object.- Parameters:
-
extensions- response extensions wrapper - Returns:
-
IBasicOCSPRespBuilderthis wrapper object.
-
addResponse
IBasicOCSPRespBuilder addResponse(ICertificateID certID, ICertificateStatus certificateStatus, Date time, Date time1, IExtensions extensions) Calls actualaddResponsemethod for the wrapped BasicOCSPRespBuilder object.- Parameters:
-
certID- wrapped certificate ID details -
certificateStatus- wrapped status of the certificate - wrapped null if okay -
time- date this response was valid on -
time1- date when next update should be requested -
extensions- optional wrapped extensions - Returns:
-
IBasicOCSPRespBuilderthis wrapper object.
-
build
IBasicOCSPResp build(IContentSigner signer, IX509CertificateHolder[] chain, Date time) throws AbstractOCSPException Calls actualbuildmethod for the wrapped BasicOCSPRespBuilder object.- Parameters:
-
signer- ContentSigner wrapper -
chain- list of wrapped X509CertificateHolder objects -
time- produced at - Returns:
-
IBasicOCSPRespwrapper for built BasicOCSPResp object. - Throws:
-
AbstractOCSPException- wrapped OCSPException.
-