From b146b03c5caba023f6462e1b7cf9997b11a81676 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Tue, 22 Feb 2022 16:24:56 +0100 Subject: ensure IAIK provider is loaded before configuration uses it, cf. #70 --- .../composites/configuration/KeystoreConfigurationComposite.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pdf-over-gui') 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; -- cgit v1.2.3