From c75b5a6a7b419214fac8207e1e9461481023b909 Mon Sep 17 00:00:00 2001 From: gregor Date: Fri, 5 Aug 2005 13:24:17 +0000 Subject: Bug 271: Adpation auf neue Struktur des Konfigurationsfiles abgeschlossen. Noch ungetestet. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@416 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../spss/server/service/RevocationArchiveCleaner.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'spss.server/src/at/gv/egovernment/moa/spss') diff --git a/spss.server/src/at/gv/egovernment/moa/spss/server/service/RevocationArchiveCleaner.java b/spss.server/src/at/gv/egovernment/moa/spss/server/service/RevocationArchiveCleaner.java index 997375305..26d79dbd8 100644 --- a/spss.server/src/at/gv/egovernment/moa/spss/server/service/RevocationArchiveCleaner.java +++ b/spss.server/src/at/gv/egovernment/moa/spss/server/service/RevocationArchiveCleaner.java @@ -1,15 +1,13 @@ package at.gv.egovernment.moa.spss.server.service; -import java.util.Date; - import iaik.pki.revocation.RevocationSourceTypes; import iaik.pki.store.revocation.archive.Archive; import iaik.pki.store.revocation.archive.ArchiveFactory; +import java.util.Date; + import at.gv.egovernment.moa.logging.LogMsg; import at.gv.egovernment.moa.logging.Logger; -import at.gv.egovernment.moa.util.BoolUtils; - import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider; import at.gv.egovernment.moa.spss.server.logging.TransactionId; import at.gv.egovernment.moa.spss.util.MessageProvider; @@ -41,14 +39,11 @@ public class RevocationArchiveCleaner implements Runnable { public void run() { while (true) { try { - ConfigurationProvider config = - ConfigurationProvider.getInstance(); - String archiveInfo = - config.getGenericConfiguration( - ConfigurationProvider.ARCHIVE_REVOCATION_INFO_PROPERTY, - "false"); + ConfigurationProvider config = ConfigurationProvider.getInstance(); + boolean enableArchiving = config.getEnableRevocationArchiving(); - if (BoolUtils.valueOf(archiveInfo)) { + if (enableArchiving) + { Archive archive = ArchiveFactory.getInstance().getArchive(); long archiveDurationMillis = (long) config.getCRLArchiveDuration() * 86400000; -- cgit v1.2.3