eu.emi.security.authn.x509.helpers.crl
Class AbstractCRLStoreSPI

java.lang.Object
  extended by java.security.cert.CertStoreSpi
      extended by eu.emi.security.authn.x509.helpers.crl.AbstractCRLStoreSPI
Direct Known Subclasses:
LazyOpensslCRLStoreSpi, PlainCRLStoreSpi

public abstract class AbstractCRLStoreSPI
extends CertStoreSpi

Common code for LazyOpensslCRLStoreSpi and PlainCRLStoreSpi.

Author:
K. Benedyczak

Field Summary
protected  CertificateFactory factory
           
protected  ObserversHandler observers
           
protected  CRLParameters params
           
protected  long updateInterval
           
 
Constructor Summary
AbstractCRLStoreSPI(CRLParameters params, ObserversHandler observers)
           
 
Method Summary
abstract  void dispose()
           
 Collection<? extends Certificate> engineGetCertificates(CertSelector selector)
           
 Collection<? extends CRL> engineGetCRLs(CRLSelector selectorRaw)
           
protected abstract  Collection<X509CRL> getCRLForIssuer(X500Principal issuer)
           
protected  void notifyObservers(String url, StoreUpdateListener.Severity level, Exception e)
           
abstract  void setUpdateInterval(long newInterval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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 class CertStoreSpi
Throws:
CertStoreException

engineGetCRLs

public Collection<? extends CRL> engineGetCRLs(CRLSelector selectorRaw)
                                        throws CertStoreException
Specified by:
engineGetCRLs in class CertStoreSpi
Throws:
CertStoreException

getCRLForIssuer

protected abstract Collection<X509CRL> getCRLForIssuer(X500Principal issuer)

setUpdateInterval

public abstract void setUpdateInterval(long newInterval)

dispose

public abstract void dispose()


Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.