Class BasicOCSPRespBC

java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.BasicOCSPRespBC
All Implemented Interfaces:
IBasicOCSPResp

public class BasicOCSPRespBC extends Object implements IBasicOCSPResp
Wrapper class for BasicOCSPResp.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicOCSPRespBC(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
    Creates new wrapper instance for BasicOCSPResp.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.cert.ocsp.BasicOCSPResp
    Gets actual org.bouncycastle object being wrapped.
    Calls actual getCerts method for the wrapped BasicOCSPResp object.
    byte[]
    Calls actual getEncoded method for the wrapped BasicOCSPResp object.
    Calls actual getProducedAt method for the wrapped BasicOCSPResp object.
    Calls actual getResponses method for the wrapped BasicOCSPResp object.
    int
    Returns a hash code value based on the wrapped object.
    boolean
    Calls actual isSignatureValid method for the wrapped BasicOCSPResp object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BasicOCSPRespBC

      public BasicOCSPRespBC (org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
      Creates new wrapper instance for BasicOCSPResp.
      Parameters:
      basicOCSPResp - BasicOCSPResp to be wrapped
  • Method Details

    • getBasicOCSPResp

      public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped BasicOCSPResp.
    • getResponses

      public ISingleResp[] getResponses()
      Calls actual getResponses method for the wrapped BasicOCSPResp object.
      Specified by:
      getResponses in interface IBasicOCSPResp
      Returns:
      wrapped SingleResp list.
    • isSignatureValid

      public boolean isSignatureValid (IContentVerifierProvider provider) throws OCSPExceptionBC
      Calls actual isSignatureValid method for the wrapped BasicOCSPResp object.
      Specified by:
      isSignatureValid in interface IBasicOCSPResp
      Parameters:
      provider - ContentVerifierProvider wrapper
      Returns:
      boolean value.
      Throws:
      OCSPExceptionBC
    • getCerts

      public IX509CertificateHolder[] getCerts()
      Calls actual getCerts method for the wrapped BasicOCSPResp object.
      Specified by:
      getCerts in interface IBasicOCSPResp
      Returns:
      wrapped certificates list.
    • getEncoded

      public byte[] getEncoded() throws IOException
      Calls actual getEncoded method for the wrapped BasicOCSPResp object.
      Specified by:
      getEncoded in interface IBasicOCSPResp
      Returns:
      the default encoding for the wrapped object.
      Throws:
      IOException - on encoding error.
    • getProducedAt

      public Date getProducedAt()
      Calls actual getProducedAt method for the wrapped BasicOCSPResp object.
      Specified by:
      getProducedAt in interface IBasicOCSPResp
      Returns:
      produced at date.
    • 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