Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ private void checkMessageSignature(
"Could not encode leaf certificate for comparison", e);
}
} else {
throw new KeylessVerificationException("Unsupported hashedrekord version");
throw new KeylessVerificationException("Unsupported hashedrekord version: " + version);
}
}

Expand Down Expand Up @@ -505,6 +505,8 @@ private void checkDsseEnvelope(
throw new KeylessVerificationException(
"Could not encode leaf certificate for comparison", e);
}
} else {
throw new KeylessVerificationException("Unsupported DSSE version: " + version);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ public void testVerify_unsupportedRekorVersion_rekorV2() throws Exception {
Path.of(artifact),
Bundle.from(new StringReader(invalidBundleFile)),
VerificationOptions.empty()));
Assertions.assertEquals("Unsupported hashedrekord version", ex.getMessage());
Assertions.assertEquals("Unsupported hashedrekord version: 0.0.3", ex.getMessage());
}

@Test
Expand Down
Loading