Package dev.sigstore.rekor.client
Class HashedRekordRequest
- java.lang.Object
-
- dev.sigstore.rekor.client.HashedRekordRequest
-
public class HashedRekordRequest extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcomputeUUID()Computes the expected rekor uuid of an entry based on the content of the hashedRekord.HashedRekordgetHashedRekord()static HashedRekordRequestnewHashedRekordRequest(byte[] artifactDigest, byte[] publicKey, byte[] signature)Create a new HashedRekorRequest.java.lang.StringtoJsonPayload()Returned a canonicalized json payload.
-
-
-
Method Detail
-
newHashedRekordRequest
public static HashedRekordRequest newHashedRekordRequest(byte[] artifactDigest, byte[] publicKey, byte[] signature)
Create a new HashedRekorRequest.- Parameters:
artifactDigest- the sha256 digest of the artifact (not hex/base64 encoded)publicKey- the pem encoded public key or public key certificate used to verifysignature. Certificates in keyless signing are typically obtained from fulcio.signature- the signature over theartifactDigest(not hex/base64 encoded)
-
toJsonPayload
public java.lang.String toJsonPayload()
Returned a canonicalized json payload.
-
getHashedRekord
public HashedRekord getHashedRekord()
-
computeUUID
public java.lang.String computeUUID()
Computes the expected rekor uuid of an entry based on the content of the hashedRekord.
-
-