Package dev.sigstore.timestamp.client
Interface TimestampRequest
@Immutable
public interface TimestampRequest
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getHash()
The hash of the artifact to be timestamped.The hash algorithm used to hash the artifact.default BigInteger
getNonce()
A nonce to prevent replay attacks.default Boolean
Whether or not to include certificates in the response.
-
Method Details
-
getHashAlgorithm
HashAlgorithm getHashAlgorithm()The hash algorithm used to hash the artifact. -
getHash
byte[] getHash()The hash of the artifact to be timestamped. For sigstore-java, this typically refers to the hash of the signature (not the original artifact's hash) in a signing event. -
getNonce
A nonce to prevent replay attacks. Defaults to a 64-bit random number. -
requestCertificates
Whether or not to include certificates in the response. Defaults tofalse
.
-