Interface ITimeStampTokenInfo

All Known Implementing Classes:
TimeStampTokenInfoBC, TimeStampTokenInfoBCFips

public interface ITimeStampTokenInfo
This interface represents the wrapper for TimeStampTokenInfo that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    Calls actual toASN1Structure method for the wrapped TimeStampTokenInfo object.
  • Method Details

    • getHashAlgorithm

      IAlgorithmIdentifier getHashAlgorithm()
      Calls actual getHashAlgorithm method for the wrapped TimeStampTokenInfo object.
      Returns:
      IAlgorithmIdentifier the wrapper for the received AlgorithmIdentifier object.
    • toASN1Structure

      ITSTInfo toASN1Structure()
      Calls actual toASN1Structure method for the wrapped TimeStampTokenInfo object.
      Returns:
      ITSTInfo TSTInfo wrapper.
    • getGenTime

      Date getGenTime()
      Calls actual getGenTime method for the wrapped TimeStampTokenInfo object.
      Returns:
      Date the received genTime.
    • getEncoded

      byte[] getEncoded() throws IOException
      Calls actual getEncoded method for the wrapped TimeStampTokenInfo object.
      Returns:
      the default encoding for the wrapped object.
      Throws:
      IOException - on encoding error.