Class TimedTrustAnchorStoreBase
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
-
- eu.emi.security.authn.x509.helpers.trust.TimedTrustAnchorStoreBase
-
- All Implemented Interfaces:
TrustAnchorStore
- Direct Known Subclasses:
DirectoryTrustAnchorStore
,JDKInMemoryTrustAnchorStore
public abstract class TimedTrustAnchorStoreBase extends AbstractTrustAnchorStore
Base implementation of Trust Anchor stores which load all certificates into memory. Provides support for timed scheduling of trust anchor store refreshes (which can be disabled).- Author:
- K. Benedyczak
-
-
Field Summary
-
Fields inherited from class eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
observers
-
-
Constructor Summary
Constructors Constructor Description TimedTrustAnchorStoreBase(java.util.Timer timer, long updateInterval, ObserversHandler observers)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
dispose()
After calling this method no notification will be produced and subsequent updates won't be scheduled.protected void
scheduleUpdate()
void
setUpdateInterval(long newInterval)
abstract void
update()
implementation should update the contents of the trust anchor store.-
Methods inherited from class eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
checkValidity, getUpdateInterval
-
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
-
-
-
-
Constructor Detail
-
TimedTrustAnchorStoreBase
public TimedTrustAnchorStoreBase(java.util.Timer timer, long updateInterval, ObserversHandler observers)
-
-
Method Detail
-
setUpdateInterval
public void setUpdateInterval(long newInterval)
- Specified by:
setUpdateInterval
in interfaceTrustAnchorStore
- Overrides:
setUpdateInterval
in classAbstractTrustAnchorStore
-
scheduleUpdate
protected void scheduleUpdate()
-
update
public 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.
-
-