Class TimeStampTokenInfoBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.tsp.TimeStampTokenInfoBCFips
All Implemented Interfaces:
ITimeStampTokenInfo

public class TimeStampTokenInfoBCFips extends Object implements ITimeStampTokenInfo
Wrapper class for TimeStampTokenInfo.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeStampTokenInfoBCFips(org.bouncycastle.tsp.TimeStampTokenInfo timeStampTokenInfo)
    Creates new wrapper instance for TimeStampTokenInfo.
  • 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 TimeStampTokenInfo object.
    Calls actual getGenTime method for the wrapped TimeStampTokenInfo object.
    Calls actual getHashAlgorithm method for the wrapped TimeStampTokenInfo object.
    org.bouncycastle.tsp.TimeStampTokenInfo
    Gets actual org.bouncycastle object being wrapped.
    int
    Returns a hash code value based on the wrapped object.
    Calls actual toASN1Structure method for the wrapped TimeStampTokenInfo 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

    • TimeStampTokenInfoBCFips

      public TimeStampTokenInfoBCFips (org.bouncycastle.tsp.TimeStampTokenInfo timeStampTokenInfo)
      Creates new wrapper instance for TimeStampTokenInfo.
      Parameters:
      timeStampTokenInfo - TimeStampTokenInfo to be wrapped
  • Method Details

    • getTimeStampTokenInfo

      public org.bouncycastle.tsp.TimeStampTokenInfo getTimeStampTokenInfo()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped TimeStampTokenInfo.
    • getHashAlgorithm

      public IAlgorithmIdentifier getHashAlgorithm()
      Calls actual getHashAlgorithm method for the wrapped TimeStampTokenInfo object.
      Specified by:
      getHashAlgorithm in interface ITimeStampTokenInfo
      Returns:
      IAlgorithmIdentifier the wrapper for the received AlgorithmIdentifier object.
    • toASN1Structure

      public ITSTInfo toASN1Structure()
      Calls actual toASN1Structure method for the wrapped TimeStampTokenInfo object.
      Specified by:
      toASN1Structure in interface ITimeStampTokenInfo
      Returns:
      ITSTInfo TSTInfo wrapper.
    • getGenTime

      public Date getGenTime()
      Calls actual getGenTime method for the wrapped TimeStampTokenInfo object.
      Specified by:
      getGenTime in interface ITimeStampTokenInfo
      Returns:
      Date the received genTime.
    • getEncoded

      public byte[] getEncoded() throws IOException
      Calls actual getEncoded method for the wrapped TimeStampTokenInfo object.
      Specified by:
      getEncoded in interface ITimeStampTokenInfo
      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