Package fr.gouv.vitam.common.timestamp
Class TimestampGenerator
java.lang.Object
fr.gouv.vitam.common.timestamp.TimestampGenerator
Generate a time stamp token for a specific hash
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateToken
(byte[] hash, DigestType digestType, BigInteger nonce)
-
Constructor Details
-
TimestampGenerator
Constructor- Parameters:
timeStampSignature
-
-
-
Method Details
-
generateToken
public byte[] generateToken(byte[] hash, DigestType digestType, 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
-