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

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

public abstract class AbstractCRLCertStoreSpi
extends CertStoreSpi

Contains methods which are common to all CertStore providing CRLs for this library

Author:
K. Benedyczak

Constructor Summary
AbstractCRLCertStoreSpi(CertStoreParameters params, Collection<? extends StoreUpdateListener> initialObservers)
           
 
Method Summary
 void addUpdateListener(StoreUpdateListener listener)
          Registers a listener which can react to errors found during refreshing of the trust material: trusted CAs or CRLs.
abstract  void dispose()
           
protected  void notifyObservers(String url, StoreUpdateListener.Severity level, Exception e)
           
protected  void removeAllObservers()
           
 void removeUpdateListener(StoreUpdateListener listener)
          Unregisters a previously registered CA or CRL update listener.
 
Methods inherited from class java.security.cert.CertStoreSpi
engineGetCertificates, engineGetCRLs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCRLCertStoreSpi

public AbstractCRLCertStoreSpi(CertStoreParameters params,
                               Collection<? extends StoreUpdateListener> initialObservers)
                        throws InvalidAlgorithmParameterException
Throws:
InvalidAlgorithmParameterException
Method Detail

addUpdateListener

public void addUpdateListener(StoreUpdateListener listener)
Registers a listener which can react to errors found during refreshing of the trust material: trusted CAs or CRLs. This method is useful only if the implementation supports updating of CAs or CRLs, otherwise the listener will not be invoked.

Parameters:
listener - to be registered

removeUpdateListener

public void removeUpdateListener(StoreUpdateListener listener)
Unregisters a previously registered CA or CRL update listener. If the listener was not registered then the method does nothing.

Parameters:
listener - to be unregistered

notifyObservers

protected void notifyObservers(String url,
                               StoreUpdateListener.Severity level,
                               Exception e)

removeAllObservers

protected void removeAllObservers()

dispose

public abstract void dispose()


Copyright © 2012 European Middleware Initiative. All Rights Reserved.