Class OCSPRespBuilderBC

java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.OCSPRespBuilderBC
All Implemented Interfaces:
IOCSPRespBuilder

public class OCSPRespBuilderBC extends Object implements IOCSPRespBuilder
Wrapper class for OCSPRespBuilder.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OCSPRespBuilderBC(org.bouncycastle.cert.ocsp.OCSPRespBuilder ocspRespBuilder)
    Creates new wrapper instance for OCSPRespBuilder.
  • Method Summary

    Modifier and Type
    Method
    Description
    build(int i, IBasicOCSPResp basicOCSPResp)
    Calls actual build method for the wrapped OCSPRespBuilder object.
    boolean
    Indicates whether some other object is "equal to" this one.
    Gets wrapper instance.
    org.bouncycastle.cert.ocsp.OCSPRespBuilder
    Gets actual org.bouncycastle object being wrapped.
    int
    Gets SUCCESSFUL constant for the wrapped OCSPRespBuilder.
    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

    • OCSPRespBuilderBC

      public OCSPRespBuilderBC (org.bouncycastle.cert.ocsp.OCSPRespBuilder ocspRespBuilder)
      Creates new wrapper instance for OCSPRespBuilder.
      Parameters:
      ocspRespBuilder - OCSPRespBuilder to be wrapped
  • Method Details

    • getInstance

      public static OCSPRespBuilderBC getInstance()
      Gets wrapper instance.
      Returns:
      OCSPRespBuilderBC instance.
    • getOcspRespBuilder

      public org.bouncycastle.cert.ocsp.OCSPRespBuilder getOcspRespBuilder()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped OCSPRespBuilder.
    • getSuccessful

      public int getSuccessful()
      Gets SUCCESSFUL constant for the wrapped OCSPRespBuilder.
      Specified by:
      getSuccessful in interface IOCSPRespBuilder
      Returns:
      OCSPRespBuilder.SUCCESSFUL value.
    • build

      public IOCSPResp build (int i, IBasicOCSPResp basicOCSPResp) throws OCSPExceptionBC
      Calls actual build method for the wrapped OCSPRespBuilder object.
      Specified by:
      build in interface IOCSPRespBuilder
      Parameters:
      i - status
      basicOCSPResp - BasicOCSPResp wrapper
      Returns:
      IOCSPResp the wrapper for built OCSPResp 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