Class LazyEuGridPmaNamespacesStore
java.lang.Object
eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
eu.emi.security.authn.x509.helpers.ns.AbstractEuGridPmaNamespacesStore
eu.emi.security.authn.x509.helpers.ns.LazyEuGridPmaNamespacesStore
- All Implemented Interfaces:
NamespacesStore
EuGridPMA namespace policies are loaded on demand by this store and are cached in memory. A
weak hash map is used to cache data. Additionally the data is cached for no longer then the
update interval, which in practice is the same as for the cooperating truststore.
This class it thread safe.
- Author:
- K. Benedyczak
-
Field Summary
FieldsFields inherited from class eu.emi.security.authn.x509.helpers.ns.AbstractEuGridPmaNamespacesStore
SUFFIX
Fields inherited from class eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
observers, openssl1Mode
-
Constructor Summary
ConstructorsConstructorDescriptionLazyEuGridPmaNamespacesStore
(ObserversHandler observers, boolean openssl1Mode, String directory, long updateInterval) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<NamespacePolicy>
getPoliciesByIssuerDn
(String definedForHash, String issuerDn) protected List<NamespacePolicy>
getPoliciesByIssuerHash
(String definedForHash, String issuerHash) void
setPolicies
(Collection<String> locations) Methods inherited from class eu.emi.security.authn.x509.helpers.ns.AbstractEuGridPmaNamespacesStore
getFileSuffix, getNotificationType, getParser, getPolicies
Methods inherited from class eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
addPolicy, addPolicyToMap, getCachedPolicies, getPolicies, tryLoadNsLocation, tryLoadNsPath
-
Field Details
-
directory
-
updateInterval
protected final long updateInterval
-
-
Constructor Details
-
LazyEuGridPmaNamespacesStore
public LazyEuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode, String directory, long updateInterval)
-
-
Method Details
-
setPolicies
-
getPoliciesByIssuerHash
- Specified by:
getPoliciesByIssuerHash
in classAbstractEuGridPmaNamespacesStore
-
getPoliciesByIssuerDn
- Specified by:
getPoliciesByIssuerDn
in classAbstractEuGridPmaNamespacesStore
-