Skip to content

Commit

Permalink
Merge pull request #522 from sigstore/keyless-signature-builder
Browse files Browse the repository at this point in the history
Minor update to builder usage
  • Loading branch information
loosebazooka authored Sep 19, 2023
2 parents 031c839 + d28d23e commit afcac83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public List<KeylessSignature> sign(List<byte[]> artifactDigests)
rekorVerifier.verifyEntry(rekorResponse.getEntry());

result.add(
ImmutableKeylessSignature.builder()
KeylessSignature.builder()
.digest(artifactDigest)
.certPath(signingCert.getCertPath())
.signature(signature)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import com.google.protobuf.ByteString;
import com.google.protobuf.util.JsonFormat;
import dev.sigstore.ImmutableKeylessSignature;
import dev.sigstore.KeylessSignature;
import dev.sigstore.encryption.certificates.Certificates;
import dev.sigstore.proto.bundle.v1.Bundle;
Expand Down Expand Up @@ -210,7 +209,7 @@ static KeylessSignature readBundle(Reader jsonReader) throws BundleParseExceptio
+ " is supported");
}
try {
return ImmutableKeylessSignature.builder()
return KeylessSignature.builder()
.digest(bundle.getMessageSignature().getMessageDigest().getDigest().toByteArray())
.certPath(
toCertPath(
Expand Down

0 comments on commit afcac83

Please sign in to comment.