Class OCSPRespBC

java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.OCSPRespBC
All Implemented Interfaces:
IOCSPResp

public class OCSPRespBC extends Object implements IOCSPResp
Wrapper class for OCSPResp.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OCSPRespBC(IOCSPResponse ocspResponse)
    Creates new wrapper instance for OCSPResp.
    OCSPRespBC(org.bouncycastle.cert.ocsp.OCSPResp ocspResp)
    Creates new wrapper instance for OCSPResp.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    byte[]
    Calls actual getEncoded method for the wrapped OCSPResp object.
    static OCSPRespBC
    Gets wrapper instance.
    org.bouncycastle.cert.ocsp.OCSPResp
    Gets actual org.bouncycastle object being wrapped.
    Calls actual getResponseObject method for the wrapped OCSPResp object.
    int
    Calls actual getStatus method for the wrapped OCSPResp object.
    int
    Gets SUCCESSFUL constant for the wrapped OCSPResp.
    int
    Returns a hash code value based on the wrapped 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

    • OCSPRespBC

      public OCSPRespBC (org.bouncycastle.cert.ocsp.OCSPResp ocspResp)
      Creates new wrapper instance for OCSPResp.
      Parameters:
      ocspResp - OCSPResp to be wrapped
    • OCSPRespBC

      public OCSPRespBC (IOCSPResponse ocspResponse)
      Creates new wrapper instance for OCSPResp.
      Parameters:
      ocspResponse - OCSPResponse wrapper
  • Method Details

    • getInstance

      public static OCSPRespBC getInstance()
      Gets wrapper instance.
      Returns:
      OCSPRespBC instance.
    • getOcspResp

      public org.bouncycastle.cert.ocsp.OCSPResp getOcspResp()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped OCSPResp.
    • getEncoded

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

      public int getStatus()
      Calls actual getStatus method for the wrapped OCSPResp object.
      Specified by:
      getStatus in interface IOCSPResp
      Returns:
      status value.
    • getResponseObject

      public Object getResponseObject() throws OCSPExceptionBC
      Calls actual getResponseObject method for the wrapped OCSPResp object.
      Specified by:
      getResponseObject in interface IOCSPResp
      Returns:
      response object.
      Throws:
      OCSPExceptionBC
    • getSuccessful

      public int getSuccessful()
      Gets SUCCESSFUL constant for the wrapped OCSPResp.
      Specified by:
      getSuccessful in interface IOCSPResp
      Returns:
      OCSPResp.SUCCESSFUL value.
    • 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