From d28d23e32eb2877938a76425005decf27bbc009e Mon Sep 17 00:00:00 2001 From: Appu Goundan Date: Fri, 15 Sep 2023 11:06:55 -0400 Subject: [PATCH] Minor update to builder usage Signed-off-by: Appu Goundan --- sigstore-java/src/main/java/dev/sigstore/KeylessSigner.java | 2 +- .../main/java/dev/sigstore/bundle/BundleFactoryInternal.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sigstore-java/src/main/java/dev/sigstore/KeylessSigner.java b/sigstore-java/src/main/java/dev/sigstore/KeylessSigner.java index a39abade..dec8673e 100644 --- a/sigstore-java/src/main/java/dev/sigstore/KeylessSigner.java +++ b/sigstore-java/src/main/java/dev/sigstore/KeylessSigner.java @@ -264,7 +264,7 @@ public List sign(List artifactDigests) rekorVerifier.verifyEntry(rekorResponse.getEntry()); result.add( - ImmutableKeylessSignature.builder() + KeylessSignature.builder() .digest(artifactDigest) .certPath(signingCert.getCertPath()) .signature(signature) diff --git a/sigstore-java/src/main/java/dev/sigstore/bundle/BundleFactoryInternal.java b/sigstore-java/src/main/java/dev/sigstore/bundle/BundleFactoryInternal.java index c0ea8df3..26b278fd 100644 --- a/sigstore-java/src/main/java/dev/sigstore/bundle/BundleFactoryInternal.java +++ b/sigstore-java/src/main/java/dev/sigstore/bundle/BundleFactoryInternal.java @@ -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; @@ -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(