Class LazyOpensslCRLStoreSpi
- java.lang.Object
-
- java.security.cert.CertStoreSpi
-
- eu.emi.security.authn.x509.helpers.crl.AbstractCRLStoreSPI
-
- eu.emi.security.authn.x509.helpers.crl.LazyOpensslCRLStoreSpi
-
public class LazyOpensslCRLStoreSpi extends AbstractCRLStoreSPI
Handles an Openssl-like CRL store. CRLs are loaded on demand from disk and cached in memory, for no longer then updateInterval parameter.This class is thread safe.
- Author:
- K. Benedyczak
-
-
Field Summary
-
Fields inherited from class eu.emi.security.authn.x509.helpers.crl.AbstractCRLStoreSPI
factory, observers, params, updateInterval
-
-
Constructor Summary
Constructors Constructor Description LazyOpensslCRLStoreSpi(String path, long crlUpdateInterval, ObserversHandler observers, boolean openssl1Mode)
Creates a new CRL store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected Collection<X509CRL>
getCRLForIssuer(X500Principal issuer)
protected Collection<X509CRL>
getCRLWithMatcher(CRLSelector selectorRaw)
long
getUpdateInterval()
protected X509CRL
loadCRL(File file)
protected X509CRL
reloadCRL(File location)
void
setUpdateInterval(long newInterval)
-
Methods inherited from class eu.emi.security.authn.x509.helpers.crl.AbstractCRLStoreSPI
engineGetCertificates, engineGetCRLs, notifyObservers
-
-
-
-
Constructor Detail
-
LazyOpensslCRLStoreSpi
public LazyOpensslCRLStoreSpi(String path, long crlUpdateInterval, ObserversHandler observers, boolean openssl1Mode) throws InvalidAlgorithmParameterException
Creates a new CRL store.- Parameters:
path
- pathcrlUpdateInterval
- crl update intervalobservers
- observers handleropenssl1Mode
- openssl 1 mode- Throws:
InvalidAlgorithmParameterException
- invalid algorithm parameter exception
-
-
Method Detail
-
loadCRL
protected X509CRL loadCRL(File file) throws IOException, CRLException, URISyntaxException
-
setUpdateInterval
public void setUpdateInterval(long newInterval)
- Specified by:
setUpdateInterval
in classAbstractCRLStoreSPI
-
getUpdateInterval
public long getUpdateInterval()
-
dispose
public void dispose()
- Specified by:
dispose
in classAbstractCRLStoreSPI
-
getCRLForIssuer
protected Collection<X509CRL> getCRLForIssuer(X500Principal issuer)
- Specified by:
getCRLForIssuer
in classAbstractCRLStoreSPI
-
getCRLWithMatcher
protected Collection<X509CRL> getCRLWithMatcher(CRLSelector selectorRaw)
- Specified by:
getCRLWithMatcher
in classAbstractCRLStoreSPI
-
-