summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_moa-sig/src/main/java
diff options
context:
space:
mode:
authorThomas <>2022-09-15 18:48:18 +0200
committerThomas <>2022-09-15 18:48:18 +0200
commitb1fe465e4fe83c5c6445cb96d7cdedea0b885081 (patch)
treebe834c42384fbac943fc0b2f5be3e49eadde58ca /eaaf_modules/eaaf_module_moa-sig/src/main/java
parent10782dd3da3e7c08b6d2d14bed2098db5c1378ca (diff)
downloadEAAF-Components-b1fe465e4fe83c5c6445cb96d7cdedea0b885081.tar.gz
EAAF-Components-b1fe465e4fe83c5c6445cb96d7cdedea0b885081.tar.bz2
EAAF-Components-b1fe465e4fe83c5c6445cb96d7cdedea0b885081.zip
feat(moa-sig): only re-initialize MOA-Sig if PKI module is not marked as configurated
Diffstat (limited to 'eaaf_modules/eaaf_module_moa-sig/src/main/java')
-rw-r--r--eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/AbstractSignatureService.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/AbstractSignatureService.java b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/AbstractSignatureService.java
index e12ba63e..95ea3144 100644
--- a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/AbstractSignatureService.java
+++ b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/AbstractSignatureService.java
@@ -18,6 +18,7 @@ import at.gv.egovernment.moa.spss.server.transaction.TransactionContext;
import at.gv.egovernment.moa.spss.server.transaction.TransactionContextManager;
import at.gv.egovernment.moaspss.logging.LoggingContext;
import at.gv.egovernment.moaspss.logging.LoggingContextManager;
+import iaik.pki.PKIFactory;
public abstract class AbstractSignatureService {
private static final Logger log = LoggerFactory.getLogger(AbstractSignatureService.class);
@@ -73,7 +74,11 @@ public abstract class AbstractSignatureService {
}
- IaikConfigurator.configure(moaSigConfig.getConfigHolder().getMoaSpssConfig());
+ if (!PKIFactory.getInstance().isAlreadyConfigured()) {
+ log.info("IAIK PKI Module is NOT configurated. Starting configuration again ... ");
+ IaikConfigurator.configure(moaSigConfig.getConfigHolder().getMoaSpssConfig());
+
+ }
}