|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.util.namespace.DNCheckerImpl
public class DNCheckerImpl
Implements DNChecker interface. Checks a DN against a policy/namespace file.
Constructor Summary | |
---|---|
DNCheckerImpl()
Creates a default DN checker using EU grid namespace format. |
|
DNCheckerImpl(boolean isLegacy)
Creates a default DN Checker using legacy policy format. |
|
DNCheckerImpl(NamespaceFormat namespaceFormat)
Creates a new DN checker with the specified namespace format. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DNCheckerImpl()
public DNCheckerImpl(boolean isLegacy)
isLegacy
- true if old policy format is to be usedpublic DNCheckerImpl(NamespaceFormat namespaceFormat)
namespaceFormat
- a namespace formatMethod Detail |
---|
public void read(java.lang.String fileName) throws java.io.IOException, java.text.ParseException
read
in interface DNChecker
fileName
- the namespaces file or policy language file.
java.io.IOException
- if unsuccessful
java.text.ParseException
- if unsuccessfulpublic void check(DN subjectDN, DN issuerDN, java.util.List<NamespacePolicy> prevPolicies) throws java.security.cert.CertPathValidatorException
check
in interface DNChecker
subjectDN
- the subject DN.issuerDN
- the issuer DN.prevPolicies
- previous policies or null.
java.security.cert.CertPathValidatorException
- in case the DNs violate the namespace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |