Interface NamespacesStore
-
- All Known Implementing Classes:
AbstractEuGridPmaNamespacesStore
,AbstractGlobusNamespacesStore
,AbstractNamespacesStore
,EuGridPmaNamespacesStore
,GlobusNamespacesStore
,LazyEuGridPmaNamespacesStore
,LazyGlobusNamespacesStore
public interface NamespacesStore
Store ofNamespacePolicy
objects. The objects are retrieved by the issuer name. The implementations must be thread safe.- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<NamespacePolicy>
getPolicies(java.security.cert.X509Certificate[] chain, int position)
Gets namespace policies applicable for the CA.java.util.List<NamespacePolicy>
getPolicies(javax.security.auth.x500.X500Principal[] chain, int position)
AsgetPolicies(X509Certificate[], int)
but with principals of certificates onlyvoid
setPolicies(java.util.Collection<java.lang.String> locations)
-
-
-
Method Detail
-
setPolicies
void setPolicies(java.util.Collection<java.lang.String> locations)
-
getPolicies
java.util.List<NamespacePolicy> getPolicies(java.security.cert.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
- chainposition
- position- Returns:
- policies
-
getPolicies
java.util.List<NamespacePolicy> getPolicies(javax.security.auth.x500.X500Principal[] chain, int position)
AsgetPolicies(X509Certificate[], int)
but with principals of certificates only- Parameters:
chain
- chainposition
- position- Returns:
- policies
-
-