org.glite.security.util.namespace
Interface DNChecker

All Known Implementing Classes:
DNCheckerImpl

public interface DNChecker

Interface for DN namespace/policy checker.

Author:
alyu

Method Summary
 void check(DN subjectDN, DN issuerDN, java.util.List<NamespacePolicy> prevPolicies)
          Checks the specified subjectDN and issuerDN against previous policies.
 void read(java.lang.String fileName)
          Reads a namespaces file/policy language file.
 

Method Detail

read

void read(java.lang.String fileName)
          throws java.io.IOException,
                 java.text.ParseException
Reads a namespaces file/policy language file.

Parameters:
fileName - the namespaces file or policy language file.
Throws:
java.io.IOException - if unsuccessful
java.text.ParseException - if unsuccessful

check

void check(DN subjectDN,
           DN issuerDN,
           java.util.List<NamespacePolicy> prevPolicies)
           throws java.security.cert.CertPathValidatorException
Checks the specified subjectDN and issuerDN against previous policies.

Parameters:
subjectDN - the subject DN
issuerDN - the issuer DN
prevPolicies - previous policies or null
Throws:
java.security.cert.CertPathValidatorException