Class HashedRekordRequest


  • public class HashedRekordRequest
    extends java.lang.Object
    • 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 verify signature. Certificates in keyless signing are typically obtained from fulcio.
        signature - the signature over the artifactDigest (not hex/base64 encoded)
      • toJsonPayload

        public java.lang.String toJsonPayload()
        Returned a canonicalized json payload.
      • computeUUID

        public java.lang.String computeUUID()
        Computes the expected rekor uuid of an entry based on the content of the hashedRekord.