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(java.lang.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 voiddispose()protected java.util.Collection<java.security.cert.X509CRL>getCRLForIssuer(javax.security.auth.x500.X500Principal issuer)protected java.util.Collection<java.security.cert.X509CRL>getCRLWithMatcher(java.security.cert.CRLSelector selectorRaw)longgetUpdateInterval()protected java.security.cert.X509CRLloadCRL(java.io.File file)protected java.security.cert.X509CRLreloadCRL(java.io.File location)voidsetUpdateInterval(long newInterval)-
Methods inherited from class eu.emi.security.authn.x509.helpers.crl.AbstractCRLStoreSPI
engineGetCertificates, engineGetCRLs, notifyObservers
-
-
-
-
Constructor Detail
-
LazyOpensslCRLStoreSpi
public LazyOpensslCRLStoreSpi(java.lang.String path, long crlUpdateInterval, ObserversHandler observers, boolean openssl1Mode) throws java.security.InvalidAlgorithmParameterExceptionCreates a new CRL store.- Parameters:
path- pathcrlUpdateInterval- crl update intervalobservers- observers handleropenssl1Mode- openssl 1 mode- Throws:
java.security.InvalidAlgorithmParameterException- invalid algorithm parameter exception
-
-
Method Detail
-
loadCRL
protected java.security.cert.X509CRL loadCRL(java.io.File file) throws java.io.IOException, java.security.cert.CRLException, java.net.URISyntaxException- Throws:
java.io.IOExceptionjava.security.cert.CRLExceptionjava.net.URISyntaxException
-
setUpdateInterval
public void setUpdateInterval(long newInterval)
- Specified by:
setUpdateIntervalin classAbstractCRLStoreSPI
-
getUpdateInterval
public long getUpdateInterval()
-
dispose
public void dispose()
- Specified by:
disposein classAbstractCRLStoreSPI
-
reloadCRL
protected java.security.cert.X509CRL reloadCRL(java.io.File location)
-
getCRLForIssuer
protected java.util.Collection<java.security.cert.X509CRL> getCRLForIssuer(javax.security.auth.x500.X500Principal issuer)
- Specified by:
getCRLForIssuerin classAbstractCRLStoreSPI
-
getCRLWithMatcher
protected java.util.Collection<java.security.cert.X509CRL> getCRLWithMatcher(java.security.cert.CRLSelector selectorRaw)
- Specified by:
getCRLWithMatcherin classAbstractCRLStoreSPI
-
-