eu.emi.security.authn.x509.helpers.ns
Class AbstractEuGridPmaNamespacesStore

java.lang.Object
  extended by eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
      extended by 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
static String SUFFIX
           
 
Fields inherited from class eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
observers, openssl1Mode
 
Constructor Summary
AbstractEuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode)
           
 
Method Summary
protected  String getFileSuffix()
           
protected  String getNotificationType()
           
protected  NamespacesParser getParser(String path)
           
 List<NamespacePolicy> getPolicies(X500Principal[] chain, int position)
          As NamespacesStore.getPolicies(X509Certificate[], int) but with principals of certificates only
protected 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:
getNotificationType in class AbstractNamespacesStore

getParser

protected NamespacesParser getParser(String path)
Specified by:
getParser in class AbstractNamespacesStore

getFileSuffix

protected String getFileSuffix()
Specified by:
getFileSuffix in class AbstractNamespacesStore

getPolicies

public List<NamespacePolicy> getPolicies(X500Principal[] chain,
                                         int position)
Description copied from interface: NamespacesStore
As NamespacesStore.getPolicies(X509Certificate[], int) but with principals of certificates only

Returns:

getPoliciesByIssuerHash

protected abstract List<NamespacePolicy> getPoliciesByIssuerHash(String definedForHash,
                                                                 String issuerHash)

getPoliciesByIssuerDn

protected abstract List<NamespacePolicy> getPoliciesByIssuerDn(String definedForHash,
                                                               String issuerDn)


Copyright © 2012-2014 European Middleware Initiative. All Rights Reserved.