Class OCSPRespBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.cert.ocsp.OCSPRespBCFips
All Implemented Interfaces:
IOCSPResp

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

    Constructors
    Constructor
    Description
    OCSPRespBCFips(IOCSPResponse ocspResponse)
    Creates new wrapper instance for OCSPResp.
    OCSPRespBCFips(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.
    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

    • OCSPRespBCFips

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

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

    • getInstance

      public static OCSPRespBCFips getInstance()
      Gets wrapper instance.
      Returns:
      OCSPRespBCFips 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 OCSPExceptionBCFips
      Calls actual getResponseObject method for the wrapped OCSPResp object.
      Specified by:
      getResponseObject in interface IOCSPResp
      Returns:
      response object.
      Throws:
      OCSPExceptionBCFips
    • 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