summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-04 11:18:24 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-04 11:18:24 +0100
commit97ade449dd0ba0f0b9577de325b771ff433f0a74 (patch)
treecbc984f0c72dfc2609145e71b7c3a1a079d683a5 /pdf-over-gui/src
parenta5c91a801bdaa6f9ac2ac2fa17a17c9a6efd5026 (diff)
downloadpdf-over-97ade449dd0ba0f0b9577de325b771ff433f0a74.tar.gz
pdf-over-97ade449dd0ba0f0b9577de325b771ff433f0a74.tar.bz2
pdf-over-97ade449dd0ba0f0b9577de325b771ff433f0a74.zip
clean remembered password on user cancel
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
index b02ac057..cf4d6d37 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/SigningState.java
@@ -104,7 +104,9 @@ public class SigningState extends State {
}
}
if (this.threadException instanceof UserCancelledException) {
- // don't display error, go back to BKU Selection
+ // don't display error, clear remembered password and go back to BKU Selection
+ if (this.getConfig().getRememberMobilePassword())
+ this.getConfig().setDefaultMobilePasswordOverlay(null);
this.setNextState(new BKUSelectionState(getStateMachine()));
return;
}