Interface TimeStampService

All Known Implementing Classes:
TSPTimeStampService

public interface TimeStampService
Interface for a time-stamp service.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    timeStamp(SignatureInfo signatureInfo, byte[] data, RevocationData revocationData)
    Gives back the encoded time-stamp token for the given array of data bytes.
  • Method Details

    • timeStamp

      byte[] timeStamp(SignatureInfo signatureInfo, byte[] data, RevocationData revocationData) throws Exception
      Gives back the encoded time-stamp token for the given array of data bytes. We assume that the time-stamp token itself contains its full certificate chain required for proper validation.
      Parameters:
      data - the data to be time-stamped.
      revocationData - the optional container that needs to be filled up with the revocation data used to validate the TSA certificate chain.
      Returns:
      the DER encoded time-stamp token.
      Throws:
      Exception - in case something went wrong.