diff options
author | Thomas <> | 2022-09-15 18:48:18 +0200 |
---|---|---|
committer | Thomas <> | 2022-09-15 18:48:18 +0200 |
commit | b1fe465e4fe83c5c6445cb96d7cdedea0b885081 (patch) | |
tree | be834c42384fbac943fc0b2f5be3e49eadde58ca /eaaf_modules/eaaf_module_moa-sig/src/main | |
parent | 10782dd3da3e7c08b6d2d14bed2098db5c1378ca (diff) | |
download | EAAF-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')
-rw-r--r-- | eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/AbstractSignatureService.java | 7 |
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()); + + } } |