Interface NamespacesStore

All Known Implementing Classes:
AbstractEuGridPmaNamespacesStore, AbstractGlobusNamespacesStore, AbstractNamespacesStore, EuGridPmaNamespacesStore, GlobusNamespacesStore, LazyEuGridPmaNamespacesStore, LazyGlobusNamespacesStore

public interface NamespacesStore
Store of NamespacePolicy objects. The objects are retrieved by the issuer name. The implementations must be thread safe.
Author:
K. Benedyczak
  • Method Details

    • setPolicies

      void setPolicies(Collection<String> locations)
    • getPolicies

      List<NamespacePolicy> getPolicies(X509Certificate[] chain, int position)
      Gets namespace policies applicable for the CA. The CA must be present in the cert chain, at the position given. The subsequent chain elements might be used if there is no explicit policy defined for the CA itself: then it is checked if any of the parent CAs defined policy for this CA.
      Parameters:
      chain - chain
      position - position
      Returns:
      policies
    • getPolicies

      List<NamespacePolicy> getPolicies(X500Principal[] chain, int position)
      As getPolicies(X509Certificate[], int) but with principals of certificates only
      Parameters:
      chain - chain
      position - position
      Returns:
      policies