Class TimeStampTokenBC

java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampTokenBC
All Implemented Interfaces:
ITimeStampToken

public class TimeStampTokenBC extends Object implements ITimeStampToken
Wrapper class for TimeStampToken.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeStampTokenBC(org.bouncycastle.tsp.TimeStampToken timeStampToken)
    Creates new wrapper instance for TimeStampToken.
  • 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 TimeStampToken object.
    Calls actual getTimeStampInfo method for the wrapped TimeStampToken object.
    org.bouncycastle.tsp.TimeStampToken
    Gets actual org.bouncycastle object being wrapped.
    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 TimeStampToken object.

    Methods inherited from class java.lang.Object

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

    • TimeStampTokenBC

      public TimeStampTokenBC (org.bouncycastle.tsp.TimeStampToken timeStampToken)
      Creates new wrapper instance for TimeStampToken.
      Parameters:
      timeStampToken - TimeStampToken to be wrapped
  • Method Details

    • getTimeStampToken

      public org.bouncycastle.tsp.TimeStampToken getTimeStampToken()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped TimeStampToken.
    • getTimeStampInfo

      public ITimeStampTokenInfo getTimeStampInfo()
      Calls actual getTimeStampInfo method for the wrapped TimeStampToken object.
      Specified by:
      getTimeStampInfo in interface ITimeStampToken
      Returns:
      ITimeStampTokenInfo the wrapper for the received TimeStampInfo object.
    • getEncoded

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

      public void validate (ISignerInformationVerifier verifier) throws TSPExceptionBC
      Calls actual validate method for the wrapped TimeStampToken object.
      Specified by:
      validate in interface ITimeStampToken
      Parameters:
      verifier - SignerInformationVerifier wrapper
      Throws:
      TSPExceptionBC
    • 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