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.
|
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 loadCert(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–2015 European Middleware Initiative. All rights reserved.