Skip to content

Conversation

aaronlew02
Copy link
Collaborator

Partially addresses #959

Summary

This change allows for the inclusion of RFC3161 timestamps in a Bundle via the BundleReader and BundleWriter.

@aaronlew02 aaronlew02 requested a review from loosebazooka June 3, 2025 18:33
@aaronlew02 aaronlew02 force-pushed the reader-writer branch 2 times, most recently from 64197fb to 49e25e6 Compare June 4, 2025 15:13
@aaronlew02 aaronlew02 requested a review from loosebazooka June 4, 2025 15:31
@@ -110,6 +113,11 @@ private static VerificationMaterial.Builder buildVerificationMaterial(Bundle bun
"Exactly 1 rekor entry must be present in the signing result");
}
builder.addTlogEntries(buildTlogEntries(bundle.getEntries().get(0)));
Optional<TimestampVerificationData> timestampData =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be an Optional.ifPresent shortcut you can use here

buildTimestampVerificationData(bundle.getTimestamps()).ifPresent(data -> builder.setTimestampVerificationData(data)

@aaronlew02 aaronlew02 merged commit a54d7c5 into main Jun 4, 2025
34 checks passed
@aaronlew02 aaronlew02 deleted the reader-writer branch June 4, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants