Class TimestampGenerator

java.lang.Object
fr.gouv.vitam.common.timestamp.TimestampGenerator

public class TimestampGenerator extends Object
Generate a time stamp token for a specific hash
  • Constructor Details

    • TimestampGenerator

      public TimestampGenerator(TimeStampSignature timeStampSignature)
      Constructor
      Parameters:
      timeStampSignature -
  • Method Details

    • generateToken

      public byte[] generateToken(byte[] hash, DigestType digestType, BigInteger nonce) throws TimeStampException
      Parameters:
      hash - the hash to timestamp
      digestType - algorithm use to generate the hash
      nonce - unique id to secure a timestamp request, can be null
      Returns:
      timestamp token
      Throws:
      TimeStampException