diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-08-05 13:24:17 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2005-08-05 13:24:17 +0000 |
commit | c75b5a6a7b419214fac8207e1e9461481023b909 (patch) | |
tree | 50d02e0b7ff26789f30a10a7b6f52e30f0786a49 /spss.server/src/at | |
parent | a8691be44385786c77e2a70cde36ba4fd14059ef (diff) | |
download | moa-id-spss-c75b5a6a7b419214fac8207e1e9461481023b909.tar.gz moa-id-spss-c75b5a6a7b419214fac8207e1e9461481023b909.tar.bz2 moa-id-spss-c75b5a6a7b419214fac8207e1e9461481023b909.zip |
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
Diffstat (limited to 'spss.server/src/at')
-rw-r--r-- | spss.server/src/at/gv/egovernment/moa/spss/server/service/RevocationArchiveCleaner.java | 17 |
1 files changed, 6 insertions, 11 deletions
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; |