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, updateInterval| 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 |
loadCert(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, setUpdateIntervalcheckValidity, getUpdateIntervalprotected 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 loadCert(URL url) throws IOException, URISyntaxException, CertificateEncodingException
protected void reloadCerts(Collection<URL> locations)
protected void update()
update in class TimedTrustAnchorStoreBasepublic Set<TrustAnchor> getTrustAnchors()
public X509Certificate[] getTrustedCertificates()
public int getConnTimeout()
public String getCacheDir()
public CertificateUtils.Encoding getEncoding()
Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.