Class AbstractEuGridPmaNamespacesStore
- java.lang.Object
-
- eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
-
- eu.emi.security.authn.x509.helpers.ns.AbstractEuGridPmaNamespacesStore
-
- All Implemented Interfaces:
NamespacesStore
- Direct Known Subclasses:
EuGridPmaNamespacesStore,LazyEuGridPmaNamespacesStore
public abstract class AbstractEuGridPmaNamespacesStore extends AbstractNamespacesStore
EuGridPMA policy store common code. Defines parsers and constants required to load the .namespaces files.This class it thread safe.
- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static StringSUFFIX-
Fields inherited from class eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
observers, openssl1Mode
-
-
Constructor Summary
Constructors Constructor Description AbstractEuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringgetFileSuffix()protected StringgetNotificationType()protected NamespacesParsergetParser(String path)List<NamespacePolicy>getPolicies(X500Principal[] chain, int position)AsNamespacesStore.getPolicies(X509Certificate[], int)but with principals of certificates onlyprotected abstract List<NamespacePolicy>getPoliciesByIssuerDn(String definedForHash, String issuerDn)protected abstract List<NamespacePolicy>getPoliciesByIssuerHash(String definedForHash, String issuerHash)-
Methods inherited from class eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
addPolicy, addPolicyToMap, getCachedPolicies, getPolicies, tryLoadNsLocation, tryLoadNsPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface eu.emi.security.authn.x509.helpers.ns.NamespacesStore
setPolicies
-
-
-
-
Field Detail
-
SUFFIX
public static final String SUFFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractEuGridPmaNamespacesStore
public AbstractEuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode)
-
-
Method Detail
-
getNotificationType
protected String getNotificationType()
- Specified by:
getNotificationTypein classAbstractNamespacesStore
-
getParser
protected NamespacesParser getParser(String path)
- Specified by:
getParserin classAbstractNamespacesStore
-
getFileSuffix
protected String getFileSuffix()
- Specified by:
getFileSuffixin classAbstractNamespacesStore
-
getPolicies
public List<NamespacePolicy> getPolicies(X500Principal[] chain, int position)
Description copied from interface:NamespacesStoreAsNamespacesStore.getPolicies(X509Certificate[], int)but with principals of certificates only- Parameters:
chain- chainposition- position- Returns:
- policies
-
getPoliciesByIssuerHash
protected abstract List<NamespacePolicy> getPoliciesByIssuerHash(String definedForHash, String issuerHash)
-
getPoliciesByIssuerDn
protected abstract List<NamespacePolicy> getPoliciesByIssuerDn(String definedForHash, String issuerDn)
-
-