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(