aboutsummaryrefslogtreecommitdiff
path: root/spss.server/src/at/gv/egovernment/moa/spss
diff options
context:
space:
mode:
Diffstat (limited to 'spss.server/src/at/gv/egovernment/moa/spss')
-rw-r--r--spss.server/src/at/gv/egovernment/moa/spss/server/service/RevocationArchiveCleaner.java17
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;