public class OpensslTrustAnchorStore extends DirectoryTrustAnchorStore
This class is extending the DirectoryTrustAnchorStore
and restricts
the certificates which are loaded.
Modifier and Type | Field and Description |
---|---|
static String |
CERT_REGEXP |
static String |
CERT_WILDCARD |
anchors, encoding, locations2anchors
observers
Constructor and Description |
---|
OpensslTrustAnchorStore(String basePath,
Timer t,
long updateInterval,
boolean loadGlobusNs,
boolean loadEuGridPmaNs,
ObserversHandler observers) |
Modifier and Type | Method and Description |
---|---|
static String |
getFileHash(String path,
String regexp) |
static String |
getFileHash(URL location,
String regexp) |
GlobusNamespacesStore |
getGlobusNsStore() |
static String |
getOpenSSLCAHash(X500Principal name)
Generates the hex hash of the DN used by openssl to name the CA
certificate files.
|
EuGridPmaNamespacesStore |
getPmaNsStore() |
protected void |
reloadCerts(Collection<URL> locations)
For all URLs tries to load a CA cert and namespaces
|
protected boolean |
tryLoadCert(URL location,
Set<TrustAnchorExt> tmpAnchors,
Map<URL,TrustAnchorExt> tmpLoc2anch) |
protected void |
tryLoadEuGridPmaNs(URL location,
List<NamespacePolicy> list) |
protected void |
tryLoadGlobusNs(URL location,
List<NamespacePolicy> globus) |
getCacheDir, getConnTimeout, getEncoding, getLocations, getTrustAnchors, getTrustedCertificates, loadCert, update
checkValidity, dispose, getUpdateInterval, scheduleUpdate, setUpdateInterval
public static final String CERT_WILDCARD
public static final String CERT_REGEXP
public OpensslTrustAnchorStore(String basePath, Timer t, long updateInterval, boolean loadGlobusNs, boolean loadEuGridPmaNs, ObserversHandler observers)
protected void reloadCerts(Collection<URL> locations)
reloadCerts
in class DirectoryTrustAnchorStore
protected boolean tryLoadCert(URL location, Set<TrustAnchorExt> tmpAnchors, Map<URL,TrustAnchorExt> tmpLoc2anch)
public EuGridPmaNamespacesStore getPmaNsStore()
public GlobusNamespacesStore getGlobusNsStore()
protected void tryLoadGlobusNs(URL location, List<NamespacePolicy> globus)
protected void tryLoadEuGridPmaNs(URL location, List<NamespacePolicy> list)
public static String getOpenSSLCAHash(X500Principal name)
name
- the DN to hash.Copyright © 2012–2013 European Middleware Initiative. All rights reserved.