summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-22 16:24:56 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-22 16:24:56 +0100
commitb146b03c5caba023f6462e1b7cf9997b11a81676 (patch)
treee0d4ecccde5dd8d56d66f5cb61e2cba00c60f629 /pdf-over-gui/src
parent6c8bcdd5de65d3fd7e2611abf70454a21ba53c3c (diff)
downloadpdf-over-b146b03c5caba023f6462e1b7cf9997b11a81676.tar.gz
pdf-over-b146b03c5caba023f6462e1b7cf9997b11a81676.tar.bz2
pdf-over-b146b03c5caba023f6462e1b7cf9997b11a81676.zip
ensure IAIK provider is loaded before configuration uses it, cf. #70
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java6
1 files changed, 6 insertions, 0 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 d63d3fc5..4108214d 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
@@ -58,6 +58,7 @@ import at.asit.pdfover.gui.workflow.config.ConfigManipulator;
import at.asit.pdfover.gui.workflow.config.ConfigurationContainer;
import at.asit.pdfover.gui.workflow.config.PersistentConfigProvider;
import at.asit.pdfover.gui.workflow.states.State;
+import iaik.security.provider.IAIK;
/**
*
@@ -270,6 +271,11 @@ public class KeystoreConfigurationComposite extends ConfigurationCompositeBase {
e.open();
}
+ static
+ {
+ IAIK.addAsProvider();
+ }
+
void loadKeystore() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {
ConfigurationContainer config =
KeystoreConfigurationComposite.this.configurationContainer;