Skip to content

Commit

Permalink
show pgp fingerprint in pgp verification signed by field tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
craigraw committed Mar 7, 2024
1 parent f0bd07b commit 2ef66d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public DownloadVerifierDialog(File initialSignatureFile) {
release.set(null);
signedBy.setText("");
signedBy.setGraphic(null);
signedBy.setTooltip(null);
releaseHash.setText("");
releaseHash.setGraphic(null);
releaseVerified.setText("");
Expand Down Expand Up @@ -283,6 +284,7 @@ private void verify() {
String message = result.userId() + " on " + signatureDateFormat.format(result.signatureTimestamp()) + (result.expired() ? " (key expired)" : "");
signedBy.setText(message);
signedBy.setGraphic(result.expired() ? GlyphUtils.getWarningGlyph() : GlyphUtils.getSuccessGlyph());
signedBy.setTooltip(new Tooltip(result.fingerprint()));

if(!result.expired() && result.keySource() != PGPKeySource.USER) {
publicKeyDisabled.set(true);
Expand All @@ -303,6 +305,7 @@ private void verify() {
Throwable e = event.getSource().getException();
signedBy.setText(getDisplayMessage(e));
signedBy.setGraphic(GlyphUtils.getFailureGlyph());
signedBy.setTooltip(null);
clearReleaseFields();
});

Expand Down

0 comments on commit 2ef66d5

Please sign in to comment.