aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-08-21 10:43:38 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-08-21 10:43:38 +0200
commitd5d284863d70d7bfcd3ccb091b26b4f2454e3203 (patch)
treea21d3fc2c895d67e757c4df659b33347af6cdfe7 /moaSig/moa-sig-lib/src
parent75a4d7c5ec89f9921670edae50e76cf80b3f19b6 (diff)
downloadmoa-sig-d5d284863d70d7bfcd3ccb091b26b4f2454e3203.tar.gz
moa-sig-d5d284863d70d7bfcd3ccb091b26b4f2454e3203.tar.bz2
moa-sig-d5d284863d70d7bfcd3ccb091b26b4f2454e3203.zip
Update internal- and third-party libs
Diffstat (limited to 'moaSig/moa-sig-lib/src')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/iaik/config/IaikConfigurator.java3
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java6
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/logging/IaikLogFactory.java6
3 files changed, 10 insertions, 5 deletions
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/iaik/config/IaikConfigurator.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/iaik/config/IaikConfigurator.java
index 44600db..00ea64d 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/iaik/config/IaikConfigurator.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/iaik/config/IaikConfigurator.java
@@ -26,6 +26,7 @@ package at.gv.egovernment.moa.spss.server.iaik.config;
import iaik.cms.IaikCCProvider;
import iaik.esi.sva.Configuration;
+import iaik.logging.LogFactory;
import iaik.pki.store.revocation.RevocationFactory;
import iaik.pki.store.revocation.RevocationSourceStore;
import iaik.pki.store.truststore.TrustStoreFactory;
@@ -88,6 +89,8 @@ public class IaikConfigurator {
//SecProviderUtils.dumpSecProviders("Starting configuration");
+ LogFactory.configure(configData.getLoggerConfig());
+
try {
iaik.pki.Configurator.initCommon(configData.getLoggerConfig(),
transId);
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java
index d08669e..6ef9c57 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/init/SystemInitializer.java
@@ -39,6 +39,7 @@ import at.gv.egovernment.moa.spss.MOAException;
import at.gv.egovernment.moa.spss.api.common.TSLConfiguration;
import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
import at.gv.egovernment.moa.spss.server.iaik.config.IaikConfigurator;
+import at.gv.egovernment.moa.spss.server.iaik.config.LoggerConfigImpl;
import at.gv.egovernment.moa.spss.server.service.RevocationArchiveCleaner;
import at.gv.egovernment.moa.spss.tsl.TSLServiceFactory;
import at.gv.egovernment.moa.spss.tsl.timer.TSLUpdaterTimerTask;
@@ -167,8 +168,9 @@ public class SystemInitializer {
Logger.info("Building IAIK-MOA configuration ... ");
- new IaikConfigurator().configure(config);
-
+ new IaikConfigurator().configure(config);
+
+
runInitializer(config);
Logger.info(new LogMsg(msg.getMessage("init.01", null)));
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/logging/IaikLogFactory.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/logging/IaikLogFactory.java
index 74491d8..9989087 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/logging/IaikLogFactory.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/logging/IaikLogFactory.java
@@ -40,11 +40,11 @@ import iaik.logging.LogFactory;
public class IaikLogFactory extends LogFactory {
public Log getInstance(Class clazz) throws LogConfigurationException {
- return getInstanceImpl();
+ return getInstanceImpl(clazz.getName());
}
public Log getInstance(String name) throws LogConfigurationException {
- return getInstanceImpl();
+ return getInstanceImpl(name);
}
/**
@@ -52,7 +52,7 @@ public class IaikLogFactory extends LogFactory {
*
* @return The <code>iaik.logging.Log</code> object to log messages to.
*/
- private Log getInstanceImpl() {
+ private Log getInstanceImpl(String name) {
LoggingContext context = LoggingContextManager.getInstance().getLoggingContext();
if (context != null)
return new IaikLog(context.getNodeID());