summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java
index 1a0d4f0f..61e87b56 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java
@@ -434,8 +434,13 @@ public class KeystoreConfigurationComposite extends ConfigurationCompositeBase {
config.keystoreType = provider.getKeyStoreTypePersistent();
config.keystoreAlias = provider.getKeyStoreAliasPersistent();
config.keystorePassStorageType = provider.getKeyStorePassStorageType();
- config.keystoreStorePass = provider.getKeyStoreStorePassPersistent();
- config.keystoreKeyPass = provider.getKeyStoreKeyPassPersistent();
+ if (config.keystorePassStorageType == KeyStorePassStorageType.DISK) {
+ config.keystoreStorePass = provider.getKeyStoreStorePassPersistent();
+ config.keystoreKeyPass = provider.getKeyStoreKeyPassPersistent();
+ } else if (config.keystorePassStorageType == KeyStorePassStorageType.MEMORY) {
+ config.keystoreStorePass = provider.getKeyStoreStorePass();
+ config.keystoreKeyPass = provider.getKeyStoreKeyPass();
+ }
}
/*