Class TimestampGenerator


  • public class TimestampGenerator
    extends java.lang.Object
    Generate a time stamp token for a specific hash
    • Constructor Detail

      • TimestampGenerator

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

      • generateToken

        public byte[] generateToken​(byte[] hash,
                                    DigestType digestType,
                                    java.math.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