Add RFC3161 timestamps to bundle reader and writer by aaronlew02 · Pull Request #978 · sigstore/sigstore-java
Conversation
Partially addresses #959
Summary
This change allows for the inclusion of RFC3161 timestamps in a Bundle via the BundleReader and BundleWriter.
| "Exactly 1 rekor entry must be present in the signing result"); | ||
| } | ||
| builder.addTlogEntries(buildTlogEntries(bundle.getEntries().get(0))); | ||
| Optional<TimestampVerificationData> timestampData = |
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters