Class BasicOCSPRespBuilderBC

java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.BasicOCSPRespBuilderBC
All Implemented Interfaces:
IBasicOCSPRespBuilder

public class BasicOCSPRespBuilderBC extends Object implements IBasicOCSPRespBuilder
Wrapper class for BasicOCSPRespBuilder.
  • Constructor Details

    • BasicOCSPRespBuilderBC

      public BasicOCSPRespBuilderBC (org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder basicOCSPRespBuilder)
      Creates new wrapper instance for BasicOCSPRespBuilder.
      Parameters:
      basicOCSPRespBuilder - BasicOCSPRespBuilder to be wrapped
    • BasicOCSPRespBuilderBC

      public BasicOCSPRespBuilderBC (IRespID respID)
      Creates new wrapper instance for BasicOCSPRespBuilder.
      Parameters:
      respID - RespID wrapper to create BasicOCSPRespBuilder to be wrapped
  • Method Details

    • 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 actual setResponseExtensions method for the wrapped BasicOCSPRespBuilder object.
      Specified by:
      setResponseExtensions in interface IBasicOCSPRespBuilder
      Parameters:
      extensions - response extensions wrapper
      Returns:
      IBasicOCSPRespBuilder this wrapper object.
    • addResponse

      public IBasicOCSPRespBuilder addResponse (ICertificateID certID, ICertificateStatus certificateStatus, Date time, Date time1, IExtensions extensions)
      Calls actual addResponse method for the wrapped BasicOCSPRespBuilder object.
      Specified by:
      addResponse in interface IBasicOCSPRespBuilder
      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:
      IBasicOCSPRespBuilder this wrapper object.
    • build

      public IBasicOCSPResp build (IContentSigner signer, IX509CertificateHolder[] chain, Date time) throws OCSPExceptionBC
      Calls actual build method for the wrapped BasicOCSPRespBuilder object.
      Specified by:
      build in interface IBasicOCSPRespBuilder
      Parameters:
      signer - ContentSigner wrapper
      chain - list of wrapped X509CertificateHolder objects
      time - produced at
      Returns:
      IBasicOCSPResp wrapper for built BasicOCSPResp object.
      Throws:
      OCSPExceptionBC
    • equals

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object