Package org.xipki.ocsp.server.store
Class CrlDbCertStatusStore
- java.lang.Object
-
- org.xipki.ocsp.api.OcspStore
-
- org.xipki.ocsp.server.store.DbCertStatusStore
-
- org.xipki.ocsp.server.store.CrlDbCertStatusStore
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class CrlDbCertStatusStore extends DbCertStatusStore
OcspStore for CRLs. Note that the CRLs will be imported to XiPKI OCSP database.- Since:
- 2.2.0
- Author:
- Lijun Liao (xipki)
-
-
Field Summary
-
Fields inherited from class org.xipki.ocsp.server.store.DbCertStatusStore
datasource
-
-
Constructor Summary
Constructors Constructor Description CrlDbCertStatusStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Runnable>getScheduledServices()voidinit(Map<String,?> sourceConf, org.xipki.datasource.DataSourceWrapper datasource)Initialize the store.protected booleanisIgnoreExpiredCrls()protected booleanisInitialized()-
Methods inherited from class org.xipki.ocsp.server.store.DbCertStatusStore
close, getCertHashAlgo, getCertStatus0, getIssuerCert, getIssuerStore, isHealthy, knowsIssuer, updateIssuerStore
-
Methods inherited from class org.xipki.ocsp.api.OcspStore
getCertStatus, getMaxNextUpdatePeriod, getMinNextUpdatePeriod, getName, getRetentionInterval, getUnknownCertBehaviour, getUpdateInterval, isIgnoreExpiredCert, isIgnoreNotYetValidCert, isIncludeArchiveCutoff, isIncludeCrlId, overviewString, setIgnoreExpiredCert, setIgnoreNotYetValidCert, setIncludeArchiveCutoff, setIncludeCrlId, setName, setNextUpdatePeriodLimit, setRetentionInterval, setUnknownCertBehaviour, setUpdateInterval
-
-
-
-
Method Detail
-
init
public void init(Map<String,?> sourceConf, org.xipki.datasource.DataSourceWrapper datasource) throws org.xipki.ocsp.api.OcspStoreException
Initialize the store.- Overrides:
initin classDbCertStatusStore- Parameters:
sourceConf- the store source configuration. It contains following key-value pairs:- dir: required
Directory of the CRL resources.
- sqlBatchCommit:
Number of SQL queries before next commit, default to be 1000.
- ignoreExpiredCrls:
Whether expired CRLs are ignored, default to true.
- dir: required
datasource- DataSource.- Throws:
org.xipki.ocsp.api.OcspStoreException
-
isIgnoreExpiredCrls
protected boolean isIgnoreExpiredCrls()
- Overrides:
isIgnoreExpiredCrlsin classorg.xipki.ocsp.api.OcspStore
-
getScheduledServices
protected List<Runnable> getScheduledServices()
- Overrides:
getScheduledServicesin classDbCertStatusStore
-
isInitialized
protected boolean isInitialized()
- Overrides:
isInitializedin classDbCertStatusStore
-
-