Class BasicOCSPResponseBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.ocsp.BasicOCSPResponseBC
All Implemented Interfaces:
IASN1Encodable, IBasicOCSPResponse

public class BasicOCSPResponseBC extends ASN1EncodableBC implements IBasicOCSPResponse
Wrapper class for BasicOCSPResponse.
  • Constructor Details

    • BasicOCSPResponseBC

      public BasicOCSPResponseBC (org.bouncycastle.asn1.ocsp.BasicOCSPResponse basicOCSPResponse)
      Creates new wrapper instance for BasicOCSPResponse.
      Parameters:
      basicOCSPResponse - BasicOCSPResponse to be wrapped
  • Method Details

    • getBasicOCSPResponse

      public org.bouncycastle.asn1.ocsp.BasicOCSPResponse getBasicOCSPResponse()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped BasicOCSPResponse.
    • getProducedAtDate

      public Date getProducedAtDate() throws ParseException
      Gets TbsResponseData for the wrapped BasicOCSPResponse object and calls actual getProducedAt method, then gets Date.
      Specified by:
      getProducedAtDate in interface IBasicOCSPResponse
      Returns:
      produced at date.
      Throws:
      ParseException - when parsing cannot be completed.