Class SingleRespBC

java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.SingleRespBC
All Implemented Interfaces:
ISingleResp

public class SingleRespBC extends Object implements ISingleResp
Wrapper class for SingleResp.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates new wrapper instance for SingleResp.
    SingleRespBC(org.bouncycastle.cert.ocsp.SingleResp singleResp)
    Creates new wrapper instance for SingleResp.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    Calls actual getCertID method for the wrapped SingleResp object.
    Calls actual getCertStatus method for the wrapped SingleResp object.
    Calls actual getNextUpdate method for the wrapped SingleResp object.
    org.bouncycastle.cert.ocsp.SingleResp
    Gets actual org.bouncycastle object being wrapped.
    Calls actual getThisUpdate method for the wrapped SingleResp object.
    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

    • SingleRespBC

      public SingleRespBC (org.bouncycastle.cert.ocsp.SingleResp singleResp)
      Creates new wrapper instance for SingleResp.
      Parameters:
      singleResp - SingleResp to be wrapped
    • SingleRespBC

      public SingleRespBC (IBasicOCSPResponse basicResp)
      Creates new wrapper instance for SingleResp.
      Parameters:
      basicResp - IBasicOCSPResponse wrapper to get SingleResp
  • Method Details

    • getSingleResp

      public org.bouncycastle.cert.ocsp.SingleResp getSingleResp()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped SingleResp.
    • getCertID

      public ICertificateID getCertID()
      Calls actual getCertID method for the wrapped SingleResp object.
      Specified by:
      getCertID in interface ISingleResp
      Returns:
      ICertificateID the wrapper for the received CertificateID.
    • getCertStatus

      public ICertificateStatus getCertStatus()
      Calls actual getCertStatus method for the wrapped SingleResp object.
      Specified by:
      getCertStatus in interface ISingleResp
      Returns:
      ICertificateStatus the wrapper for the received CertificateStatus.
    • getNextUpdate

      public Date getNextUpdate()
      Calls actual getNextUpdate method for the wrapped SingleResp object.
      Specified by:
      getNextUpdate in interface ISingleResp
      Returns:
      date of next update.
    • getThisUpdate

      public Date getThisUpdate()
      Calls actual getThisUpdate method for the wrapped SingleResp object.
      Specified by:
      getThisUpdate in interface ISingleResp
      Returns:
      date of this update.
    • 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