Class BasicOCSPRespBuilderBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.ocsp.BasicOCSPRespBuilderBC
-
- All Implemented Interfaces:
IBasicOCSPRespBuilder
public class BasicOCSPRespBuilderBC extends java.lang.Object implements IBasicOCSPRespBuilder
Wrapper class forBasicOCSPRespBuilder.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cert.ocsp.BasicOCSPRespBuilderbasicOCSPRespBuilder
-
Constructor Summary
Constructors Constructor Description BasicOCSPRespBuilderBC(IRespID respID)Creates new wrapper instance forBasicOCSPRespBuilder.BasicOCSPRespBuilderBC(org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder basicOCSPRespBuilder)Creates new wrapper instance forBasicOCSPRespBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBasicOCSPRespBuilderaddResponse(ICertificateID certID, ICertificateStatus certificateStatus, java.util.Date time, java.util.Date time1, IExtensions extensions)Calls actualaddResponsemethod for the wrapped BasicOCSPRespBuilder object.IBasicOCSPRespbuild(IContentSigner signer, IX509CertificateHolder[] chain, java.util.Date time)Calls actualbuildmethod for the wrapped BasicOCSPRespBuilder object.booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.ocsp.BasicOCSPRespBuildergetBasicOCSPRespBuilder()Gets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.IBasicOCSPRespBuildersetResponseExtensions(IExtensions extensions)Calls actualsetResponseExtensionsmethod for the wrapped BasicOCSPRespBuilder object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Constructor Detail
-
BasicOCSPRespBuilderBC
public BasicOCSPRespBuilderBC(org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder basicOCSPRespBuilder)
Creates new wrapper instance forBasicOCSPRespBuilder.- Parameters:
basicOCSPRespBuilder-BasicOCSPRespBuilderto be wrapped
-
BasicOCSPRespBuilderBC
public BasicOCSPRespBuilderBC(IRespID respID)
Creates new wrapper instance forBasicOCSPRespBuilder.- Parameters:
respID- RespID wrapper to createBasicOCSPRespBuilderto be wrapped
-
-
Method Detail
-
getBasicOCSPRespBuilder
public org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder getBasicOCSPRespBuilder()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
BasicOCSPRespBuilder.
-
setResponseExtensions
public IBasicOCSPRespBuilder setResponseExtensions(IExtensions extensions)
Calls actualsetResponseExtensionsmethod for the wrapped BasicOCSPRespBuilder object.- Specified by:
setResponseExtensionsin interfaceIBasicOCSPRespBuilder- Parameters:
extensions- response extensions wrapper- Returns:
IBasicOCSPRespBuilderthis wrapper object.
-
addResponse
public IBasicOCSPRespBuilder addResponse(ICertificateID certID, ICertificateStatus certificateStatus, java.util.Date time, java.util.Date time1, IExtensions extensions)
Calls actualaddResponsemethod for the wrapped BasicOCSPRespBuilder object.- Specified by:
addResponsein interfaceIBasicOCSPRespBuilder- Parameters:
certID- wrapped certificate ID detailscertificateStatus- wrapped status of the certificate - wrapped null if okaytime- date this response was valid ontime1- date when next update should be requestedextensions- optional wrapped extensions- Returns:
IBasicOCSPRespBuilderthis wrapper object.
-
build
public IBasicOCSPResp build(IContentSigner signer, IX509CertificateHolder[] chain, java.util.Date time) throws OCSPExceptionBC
Calls actualbuildmethod for the wrapped BasicOCSPRespBuilder object.- Specified by:
buildin interfaceIBasicOCSPRespBuilder- Parameters:
signer- ContentSigner wrapperchain- list of wrapped X509CertificateHolder objectstime- produced at- Returns:
IBasicOCSPRespwrapper for built BasicOCSPResp object.- Throws:
OCSPExceptionBC
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-