org.bouncycastle.jce.provider
Class PKIXNameConstraintValidator
java.lang.Object
|
+--org.bouncycastle.jce.provider.PKIXNameConstraintValidator
- public class PKIXNameConstraintValidator
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PKIXNameConstraintValidator
public PKIXNameConstraintValidator()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
checkPermittedDN
public void checkPermittedDN(ASN1Sequence dns)
throws PKIXNameConstraintValidatorException
checkExcludedDN
public void checkExcludedDN(ASN1Sequence dns)
throws PKIXNameConstraintValidatorException
checkPermitted
public void checkPermitted(GeneralName name)
throws PKIXNameConstraintValidatorException
- Checks if the given GeneralName is in the permitted set.
- Parameters:
name
- The GeneralName- Throws:
PKIXNameConstraintValidatorException
- If the name
checkExcluded
public void checkExcluded(GeneralName name)
throws PKIXNameConstraintValidatorException
- Check if the given GeneralName is contained in the excluded set.
- Parameters:
name
- The GeneralName.- Throws:
PKIXNameConstraintValidatorException
- If the name is
excluded.
intersectPermittedSubtree
public void intersectPermittedSubtree(GeneralSubtree permitted)
intersectPermittedSubtree
public void intersectPermittedSubtree(GeneralSubtree[] permitted)
- Updates the permitted set of these name constraints with the intersection
with the given subtree.
- Parameters:
permitted
- The permitted subtrees
intersectEmptyPermittedSubtree
public void intersectEmptyPermittedSubtree(int nameType)
addExcludedSubtree
public void addExcludedSubtree(GeneralSubtree subtree)
- Adds a subtree to the excluded set of these name constraints.
- Parameters:
subtree
- A subtree with an excluded GeneralName.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object