Class EuGridPmaNamespacesStore
- 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.EuGridPmaNamespacesStore
-
- All Implemented Interfaces:
NamespacesStore
public class EuGridPmaNamespacesStore extends AbstractEuGridPmaNamespacesStore
Provides an in-memory store ofNamespacePolicy
objects. The objects are matched either by subject name or by its MD5 hash (needed in case of SELF subject). This implementation is useful for EuGridPMA namespaces definitions. This class it thread safe.- Author:
- K. Benedyczak
-
-
Field Summary
-
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 EuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode)
-
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)
void
setPolicies(java.util.Collection<java.lang.String> locations)
protected void
setPolicies(java.util.List<NamespacePolicy> policies)
-
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
-
EuGridPmaNamespacesStore
public EuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode)
-
-
Method Detail
-
setPolicies
public void setPolicies(java.util.Collection<java.lang.String> locations)
-
setPolicies
protected void setPolicies(java.util.List<NamespacePolicy> policies)
-
getPoliciesByIssuerHash
protected java.util.List<NamespacePolicy> getPoliciesByIssuerHash(java.lang.String definedForHash, java.lang.String issuerHash)
- Specified by:
getPoliciesByIssuerHash
in classAbstractEuGridPmaNamespacesStore
-
getPoliciesByIssuerDn
protected java.util.List<NamespacePolicy> getPoliciesByIssuerDn(java.lang.String definedForHash, java.lang.String issuerDn)
- Specified by:
getPoliciesByIssuerDn
in classAbstractEuGridPmaNamespacesStore
-
-