Package fr.gouv.vitam.common.timestamp
Class TimestampGenerator
- java.lang.Object
-
- fr.gouv.vitam.common.timestamp.TimestampGenerator
-
public class TimestampGenerator extends java.lang.Object
Generate a time stamp token for a specific hash
-
-
Constructor Summary
Constructors Constructor Description TimestampGenerator(TimeStampSignature timeStampSignature)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generateToken(byte[] hash, DigestType digestType, java.math.BigInteger nonce)
-
-
-
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 timestampdigestType
- algorithm use to generate the hashnonce
- unique id to secure a timestamp request, can be null- Returns:
- timestamp token
- Throws:
TimeStampException
-
-