Class TimeStampResponseBC

java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampResponseBC
All Implemented Interfaces:
ITimeStampResponse

public class TimeStampResponseBC extends Object implements ITimeStampResponse
Wrapper class for TimeStampResponse.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeStampResponseBC(org.bouncycastle.tsp.TimeStampResponse timeStampResponse)
    Creates new wrapper instance for TimeStampResponse.
  • 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 TimeStampResponse object.
    Calls actual getFailInfo method for the wrapped TimeStampResponse object.
    Calls actual getStatusString method for the wrapped TimeStampResponse object.
    org.bouncycastle.tsp.TimeStampResponse
    Gets actual org.bouncycastle object being wrapped.
    Calls actual getTimeStampToken method for the wrapped TimeStampResponse object.
    int
    Returns a hash code value based on the wrapped object.
    Delegates toString method call to the wrapped object.
    void
    Calls actual validate method for the wrapped TimeStampResponse object.

    Methods inherited from class java.lang.Object

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

    • TimeStampResponseBC

      public TimeStampResponseBC (org.bouncycastle.tsp.TimeStampResponse timeStampResponse)
      Creates new wrapper instance for TimeStampResponse.
      Parameters:
      timeStampResponse - TimeStampResponse to be wrapped
  • Method Details

    • getTimeStampResponse

      public org.bouncycastle.tsp.TimeStampResponse getTimeStampResponse()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped TimeStampResponse.
    • validate

      public void validate (ITimeStampRequest request) throws TSPExceptionBC
      Calls actual validate method for the wrapped TimeStampResponse object.
      Specified by:
      validate in interface ITimeStampResponse
      Parameters:
      request - TimeStampRequest wrapper
      Throws:
      TSPExceptionBC
    • getFailInfo

      public IPKIFailureInfo getFailInfo()
      Calls actual getFailInfo method for the wrapped TimeStampResponse object.
      Specified by:
      getFailInfo in interface ITimeStampResponse
      Returns:
      IPKIFailureInfo the wrapper for the received PKIFailureInfo object.
    • getTimeStampToken

      public ITimeStampToken getTimeStampToken()
      Calls actual getTimeStampToken method for the wrapped TimeStampResponse object.
      Specified by:
      getTimeStampToken in interface ITimeStampResponse
      Returns:
      ITimeStampToken the wrapper for the received TimeStampToken object.
    • getStatusString

      public String getStatusString()
      Calls actual getStatusString method for the wrapped TimeStampResponse object.
      Specified by:
      getStatusString in interface ITimeStampResponse
      Returns:
      status string.
    • getEncoded

      public byte[] getEncoded() throws IOException
      Calls actual getEncoded method for the wrapped TimeStampResponse object.
      Specified by:
      getEncoded in interface ITimeStampResponse
      Returns:
      the default encoding for the wrapped object.
      Throws:
      IOException - on encoding error.
    • 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