Class AbstractCRLStoreSPI
- java.lang.Object
-
- java.security.cert.CertStoreSpi
-
- eu.emi.security.authn.x509.helpers.crl.AbstractCRLStoreSPI
-
- Direct Known Subclasses:
LazyOpensslCRLStoreSpi
,PlainCRLStoreSpi
public abstract class AbstractCRLStoreSPI extends CertStoreSpi
Common code forLazyOpensslCRLStoreSpi
andPlainCRLStoreSpi
.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected CertificateFactory
factory
protected ObserversHandler
observers
protected CRLParameters
params
protected long
updateInterval
-
Constructor Summary
Constructors Constructor Description AbstractCRLStoreSPI(CRLParameters params, ObserversHandler observers)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
dispose()
Collection<? extends Certificate>
engineGetCertificates(CertSelector selector)
Collection<? extends CRL>
engineGetCRLs(CRLSelector selectorRaw)
protected abstract Collection<X509CRL>
getCRLForIssuer(X500Principal issuer)
protected abstract Collection<X509CRL>
getCRLWithMatcher(CRLSelector selectorRaw)
protected void
notifyObservers(String url, StoreUpdateListener.Severity level, Exception e)
abstract void
setUpdateInterval(long newInterval)
-
-
-
Field Detail
-
observers
protected ObserversHandler observers
-
params
protected CRLParameters params
-
factory
protected final CertificateFactory factory
-
updateInterval
protected long updateInterval
-
-
Constructor Detail
-
AbstractCRLStoreSPI
public AbstractCRLStoreSPI(CRLParameters params, ObserversHandler observers) throws InvalidAlgorithmParameterException
-
-
Method Detail
-
notifyObservers
protected void notifyObservers(String url, StoreUpdateListener.Severity level, Exception e)
-
engineGetCertificates
public Collection<? extends Certificate> engineGetCertificates(CertSelector selector) throws CertStoreException
- Specified by:
engineGetCertificates
in classCertStoreSpi
- Throws:
CertStoreException
-
engineGetCRLs
public Collection<? extends CRL> engineGetCRLs(CRLSelector selectorRaw) throws CertStoreException
- Specified by:
engineGetCRLs
in classCertStoreSpi
- Throws:
CertStoreException
-
getCRLForIssuer
protected abstract Collection<X509CRL> getCRLForIssuer(X500Principal issuer)
-
getCRLWithMatcher
protected abstract Collection<X509CRL> getCRLWithMatcher(CRLSelector selectorRaw)
-
setUpdateInterval
public abstract void setUpdateInterval(long newInterval)
-
dispose
public abstract void dispose()
-
-