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

java.lang.Object
  extended by eu.emi.security.authn.x509.helpers.ns.AbstractNamespacesStore
      extended by eu.emi.security.authn.x509.helpers.ns.AbstractEuGridPmaNamespacesStore
          extended by eu.emi.security.authn.x509.helpers.ns.EuGridPmaNamespacesStore
All Implemented Interfaces:
NamespacesStore

public class EuGridPmaNamespacesStore
extends AbstractEuGridPmaNamespacesStore

Provides an in-memory store of NamespacePolicy 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
EuGridPmaNamespacesStore(ObserversHandler observers, boolean openssl1Mode)
           
 
Method Summary
protected  List<NamespacePolicy> getPoliciesByIssuerDn(String definedForHash, String issuerDn)
           
protected  List<NamespacePolicy> getPoliciesByIssuerHash(String definedForHash, String issuerHash)
           
 void setPolicies(Collection<String> locations)
           
protected  void setPolicies(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EuGridPmaNamespacesStore

public EuGridPmaNamespacesStore(ObserversHandler observers,
                                boolean openssl1Mode)
Method Detail

setPolicies

public void setPolicies(Collection<String> locations)

setPolicies

protected void setPolicies(List<NamespacePolicy> policies)

getPoliciesByIssuerHash

protected List<NamespacePolicy> getPoliciesByIssuerHash(String definedForHash,
                                                        String issuerHash)
Specified by:
getPoliciesByIssuerHash in class AbstractEuGridPmaNamespacesStore

getPoliciesByIssuerDn

protected List<NamespacePolicy> getPoliciesByIssuerDn(String definedForHash,
                                                      String issuerDn)
Specified by:
getPoliciesByIssuerDn in class AbstractEuGridPmaNamespacesStore


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