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 java.security.cert.CertStoreSpi
Common code forLazyOpensslCRLStoreSpi
andPlainCRLStoreSpi
.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected java.security.cert.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()
java.util.Collection<? extends java.security.cert.Certificate>
engineGetCertificates(java.security.cert.CertSelector selector)
java.util.Collection<? extends java.security.cert.CRL>
engineGetCRLs(java.security.cert.CRLSelector selectorRaw)
protected abstract java.util.Collection<java.security.cert.X509CRL>
getCRLForIssuer(javax.security.auth.x500.X500Principal issuer)
protected abstract java.util.Collection<java.security.cert.X509CRL>
getCRLWithMatcher(java.security.cert.CRLSelector selectorRaw)
protected void
notifyObservers(java.lang.String url, StoreUpdateListener.Severity level, java.lang.Exception e)
abstract void
setUpdateInterval(long newInterval)
-
-
-
Field Detail
-
observers
protected ObserversHandler observers
-
params
protected CRLParameters params
-
factory
protected final java.security.cert.CertificateFactory factory
-
updateInterval
protected long updateInterval
-
-
Constructor Detail
-
AbstractCRLStoreSPI
public AbstractCRLStoreSPI(CRLParameters params, ObserversHandler observers) throws java.security.InvalidAlgorithmParameterException
- Throws:
java.security.InvalidAlgorithmParameterException
-
-
Method Detail
-
notifyObservers
protected void notifyObservers(java.lang.String url, StoreUpdateListener.Severity level, java.lang.Exception e)
-
engineGetCertificates
public java.util.Collection<? extends java.security.cert.Certificate> engineGetCertificates(java.security.cert.CertSelector selector) throws java.security.cert.CertStoreException
- Specified by:
engineGetCertificates
in classjava.security.cert.CertStoreSpi
- Throws:
java.security.cert.CertStoreException
-
engineGetCRLs
public java.util.Collection<? extends java.security.cert.CRL> engineGetCRLs(java.security.cert.CRLSelector selectorRaw) throws java.security.cert.CertStoreException
- Specified by:
engineGetCRLs
in classjava.security.cert.CertStoreSpi
- Throws:
java.security.cert.CertStoreException
-
getCRLForIssuer
protected abstract java.util.Collection<java.security.cert.X509CRL> getCRLForIssuer(javax.security.auth.x500.X500Principal issuer)
-
getCRLWithMatcher
protected abstract java.util.Collection<java.security.cert.X509CRL> getCRLWithMatcher(java.security.cert.CRLSelector selectorRaw)
-
setUpdateInterval
public abstract void setUpdateInterval(long newInterval)
-
dispose
public abstract void dispose()
-
-