eu.emi.security.authn.x509.helpers.trust
Class TrustAnchorStoreBase

java.lang.Object
  extended by eu.emi.security.authn.x509.helpers.trust.TrustAnchorStoreBase
All Implemented Interfaces:
TrustAnchorStore
Direct Known Subclasses:
DirectoryTrustAnchorStore, JDKInMemoryTrustAnchorStore

public abstract class TrustAnchorStoreBase
extends Object
implements TrustAnchorStore

Base implementation of Trust Anchor stores. Provides two functions: - timed scheduling of trust anchor store refreshes (which can be disabled) - observers support

Author:
K. Benedyczak

Field Summary
protected  ObserversHandler observers
           
 
Constructor Summary
TrustAnchorStoreBase(Timer timer, long updateInterval, ObserversHandler observers)
           
 
Method Summary
protected  void checkValidity(String location, X509Certificate certificate, boolean addSubject)
           
 void dispose()
          After calling this method no notification will be produced and subsequent updates won't be scheduled.
 long getUpdateInterval()
           
protected  void scheduleUpdate()
           
 void setUpdateInterval(long newInterval)
           
protected abstract  void update()
          implementation should update the contents of the trust anchor store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.emi.security.authn.x509.helpers.trust.TrustAnchorStore
getTrustAnchors, getTrustedCertificates
 

Field Detail

observers

protected final ObserversHandler observers
Constructor Detail

TrustAnchorStoreBase

public TrustAnchorStoreBase(Timer timer,
                            long updateInterval,
                            ObserversHandler observers)
Method Detail

getUpdateInterval

public long getUpdateInterval()

setUpdateInterval

public void setUpdateInterval(long newInterval)

scheduleUpdate

protected void scheduleUpdate()

update

protected abstract void update()
implementation should update the contents of the trust anchor store. It need not to bother with scheduling.


dispose

public void dispose()
After calling this method no notification will be produced and subsequent updates won't be scheduled.

Specified by:
dispose in interface TrustAnchorStore

checkValidity

protected void checkValidity(String location,
                             X509Certificate certificate,
                             boolean addSubject)


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