summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-14 11:27:19 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-07-14 11:27:19 +0200
commitc7e732e3f5b5cccc6f7dd0c59350e8714faa66b1 (patch)
treef5c98dc36d9e55c70908ba39ea4eb4f426f3f716 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow
parentc98c1a5932f2cb396fc8c9fb20983895e62e652e (diff)
downloadpdf-over-c7e732e3f5b5cccc6f7dd0c59350e8714faa66b1.tar.gz
pdf-over-c7e732e3f5b5cccc6f7dd0c59350e8714faa66b1.tar.bz2
pdf-over-c7e732e3f5b5cccc6f7dd0c59350e8714faa66b1.zip
hook the remember credentials functionality up
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
index d5f5cbe0..020ead33 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
@@ -186,6 +186,19 @@ public class MobileBKUState extends State {
});
}
+ public void rememberCredentialsIfNecessary() {
+ if (getStateMachine().configProvider.getRememberMobilePassword())
+ {
+ getStateMachine().configProvider.setDefaultMobileNumberOverlay(status.phoneNumber);
+ getStateMachine().configProvider.setDefaultMobilePasswordOverlay(status.mobilePassword);
+ }
+ }
+
+ public void clearRememberedCredentials() {
+ getStateMachine().configProvider.setDefaultMobilePasswordOverlay(null);
+ status.mobilePassword = null;
+ }
+
/**
* Make sure phone number and password are set in the MobileBKUStatus
*/