eu.emi.security.authn.x509.helpers.trust
Class TrustAnchorStoreBase
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
observers
protected final ObserversHandler observers
TrustAnchorStoreBase
public TrustAnchorStoreBase(Timer timer,
long updateInterval,
ObserversHandler observers)
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.