|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.emi.security.authn.x509.helpers.trust.TrustAnchorStoreBase
public abstract class TrustAnchorStoreBase
Base implementation of Trust Anchor stores. Provides two functions: - timed scheduling of trust anchor store refreshes (which can be disabled) - observers support
Constructor Summary | |
---|---|
TrustAnchorStoreBase(Timer timer,
long updateInterval,
Collection<? extends StoreUpdateListener> listeners)
|
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. |
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 |
notifyObservers(String url,
String type,
StoreUpdateListener.Severity level,
Exception e)
|
void |
removeUpdateListener(StoreUpdateListener listener)
Unregisters a previously registered CA or CRL update listener. |
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 |
Constructor Detail |
---|
public TrustAnchorStoreBase(Timer timer, long updateInterval, Collection<? extends StoreUpdateListener> listeners)
Method Detail |
---|
public long getUpdateInterval()
public void setUpdateInterval(long newInterval)
protected abstract void update()
public void addUpdateListener(StoreUpdateListener listener)
addUpdateListener
in interface TrustAnchorStore
listener
- to be registeredpublic void removeUpdateListener(StoreUpdateListener listener)
removeUpdateListener
in interface TrustAnchorStore
listener
- to be unregisteredprotected void notifyObservers(String url, String type, StoreUpdateListener.Severity level, Exception e)
public void dispose()
dispose
in interface TrustAnchorStore
protected void checkValidity(String location, X509Certificate certificate, boolean addSubject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |