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
public class LazyEuGridPmaNamespacesStore extends AbstractEuGridPmaNamespacesStore
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
Fields Modifier and Type Field Description protected java.lang.Stringdirectoryprotected longupdateInterval-
Fields 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
Constructors Constructor Description LazyEuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode, java.lang.String directory, long updateInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<NamespacePolicy>getPoliciesByIssuerDn(java.lang.String definedForHash, java.lang.String issuerDn)protected java.util.List<NamespacePolicy>getPoliciesByIssuerHash(java.lang.String definedForHash, java.lang.String issuerHash)voidsetPolicies(java.util.Collection<java.lang.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
-
-
-
-
Constructor Detail
-
LazyEuGridPmaNamespacesStore
public LazyEuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode, java.lang.String directory, long updateInterval)
-
-
Method Detail
-
setPolicies
public void setPolicies(java.util.Collection<java.lang.String> locations)
-
getPoliciesByIssuerHash
protected java.util.List<NamespacePolicy> getPoliciesByIssuerHash(java.lang.String definedForHash, java.lang.String issuerHash)
- Specified by:
getPoliciesByIssuerHashin classAbstractEuGridPmaNamespacesStore
-
getPoliciesByIssuerDn
protected java.util.List<NamespacePolicy> getPoliciesByIssuerDn(java.lang.String definedForHash, java.lang.String issuerDn)
- Specified by:
getPoliciesByIssuerDnin classAbstractEuGridPmaNamespacesStore
-
-