public class DirectoryTrustAnchorStore extends TimedTrustAnchorStoreBase
Modifier and Type | Field and Description |
---|---|
protected Set<TrustAnchorExt> |
anchors |
protected CertificateUtils.Encoding |
encoding |
protected Map<URL,TrustAnchorExt> |
locations2anchors |
observers
Modifier | Constructor and Description |
---|---|
|
DirectoryTrustAnchorStore(List<String> locations,
String diskCache,
int connectionTimeout,
Timer t,
long updateInterval,
CertificateUtils.Encoding encoding,
ObserversHandler listeners) |
protected |
DirectoryTrustAnchorStore(List<String> locations,
String diskCache,
int connectionTimeout,
Timer t,
long updateInterval,
CertificateUtils.Encoding encoding,
ObserversHandler observers,
boolean noFirstUpdate) |
Modifier and Type | Method and Description |
---|---|
String |
getCacheDir() |
int |
getConnTimeout() |
CertificateUtils.Encoding |
getEncoding() |
List<String> |
getLocations() |
Set<TrustAnchor> |
getTrustAnchors() |
X509Certificate[] |
getTrustedCertificates() |
protected X509Certificate[] |
loadCerts(URL url) |
protected void |
reloadCerts(Collection<URL> locations)
For all URLs tries to load a CA cert.
|
protected void |
update()
1. work only if schedulingNeeded()
2. for all wildcards refresh file lists
3. remove the locations not valid anymore
4. for all location URLs try to get the cert
5. update timestamp
6. schedule the next update if enabled
|
dispose, scheduleUpdate, setUpdateInterval
checkValidity, getUpdateInterval
protected Set<TrustAnchorExt> anchors
protected Map<URL,TrustAnchorExt> locations2anchors
protected CertificateUtils.Encoding encoding
public DirectoryTrustAnchorStore(List<String> locations, String diskCache, int connectionTimeout, Timer t, long updateInterval, CertificateUtils.Encoding encoding, ObserversHandler listeners)
protected DirectoryTrustAnchorStore(List<String> locations, String diskCache, int connectionTimeout, Timer t, long updateInterval, CertificateUtils.Encoding encoding, ObserversHandler observers, boolean noFirstUpdate)
protected X509Certificate[] loadCerts(URL url) throws IOException, URISyntaxException, CertificateEncodingException
protected void reloadCerts(Collection<URL> locations)
locations
- a collection of URLsprotected void update()
update
in class TimedTrustAnchorStoreBase
public Set<TrustAnchor> getTrustAnchors()
public X509Certificate[] getTrustedCertificates()
public int getConnTimeout()
public String getCacheDir()
public CertificateUtils.Encoding getEncoding()
Copyright © 2012-2017 European Middleware Initiative. All Rights Reserved.