Class AbstractTrustAnchorStore
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.trust.AbstractTrustAnchorStore
-
- All Implemented Interfaces:
TrustAnchorStore
- Direct Known Subclasses:
LazyOpensslTrustAnchorStoreImpl
,TimedTrustAnchorStoreBase
public abstract class AbstractTrustAnchorStore extends java.lang.Object implements TrustAnchorStore
Base implementation of Trust Anchor stores. Provides observers support and utility methods to warn about expired certs.
-
-
Field Summary
Fields Modifier and Type Field Description protected ObserversHandler
observers
private long
updateInterval
-
Constructor Summary
Constructors Constructor Description AbstractTrustAnchorStore(long updateInterval, ObserversHandler observers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkValidity(java.lang.String location, java.security.cert.X509Certificate certificate, boolean addSubject)
long
getUpdateInterval()
private static java.lang.StringBuilder
prepErrorMsgPfx(java.security.cert.X509Certificate certificate, boolean addSubject)
void
setUpdateInterval(long newInterval)
-
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
dispose, getTrustAnchors, getTrustedCertificates
-
-
-
-
Field Detail
-
observers
protected final ObserversHandler observers
-
updateInterval
private long updateInterval
-
-
Constructor Detail
-
AbstractTrustAnchorStore
public AbstractTrustAnchorStore(long updateInterval, ObserversHandler observers)
-
-
Method Detail
-
getUpdateInterval
public long getUpdateInterval()
- Specified by:
getUpdateInterval
in interfaceTrustAnchorStore
-
setUpdateInterval
public void setUpdateInterval(long newInterval)
- Specified by:
setUpdateInterval
in interfaceTrustAnchorStore
-
checkValidity
protected void checkValidity(java.lang.String location, java.security.cert.X509Certificate certificate, boolean addSubject)
-
prepErrorMsgPfx
private static java.lang.StringBuilder prepErrorMsgPfx(java.security.cert.X509Certificate certificate, boolean addSubject)
-
-