Interface ITimeStampToken

All Known Implementing Classes:
TimeStampTokenBC, TimeStampTokenBCFips

public interface ITimeStampToken
This interface represents the wrapper for TimeStampToken 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 TimeStampToken object.
    Calls actual getTimeStampInfo method for the wrapped TimeStampToken object.
    void
    Calls actual validate method for the wrapped TimeStampToken object.
  • Method Details

    • getTimeStampInfo

      ITimeStampTokenInfo getTimeStampInfo()
      Calls actual getTimeStampInfo method for the wrapped TimeStampToken object.
      Returns:
      ITimeStampTokenInfo the wrapper for the received TimeStampInfo object.
    • validate

      void validate (ISignerInformationVerifier verifier) throws AbstractTSPException
      Calls actual validate method for the wrapped TimeStampToken object.
      Parameters:
      verifier - SignerInformationVerifier wrapper
      Throws:
      AbstractTSPException - TSPException wrapper.
    • getEncoded

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