Package org.bouncycastle.jce.provider
Class PKIXNameConstraintValidator
java.lang.Object
org.bouncycastle.jce.provider.PKIXNameConstraintValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExcludedSubtree(GeneralSubtree subtree) Adds a subtree to the excluded set of these name constraints.voidcheckExcluded(GeneralName name) Check if the given GeneralName is contained in the excluded set.voidvoidcheckPermitted(GeneralName name) Checks if the given GeneralName is in the permitted set.voidbooleaninthashCode()voidintersectEmptyPermittedSubtree(int nameType) voidintersectPermittedSubtree(GeneralSubtree permitted) voidintersectPermittedSubtree(GeneralSubtree[] permitted) Updates the permitted set of these name constraints with the intersection with the given subtree.toString()
-
Constructor Details
-
PKIXNameConstraintValidator
public PKIXNameConstraintValidator()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
checkPermittedDN
-
checkExcludedDN
-
checkPermitted
Checks if the given GeneralName is in the permitted set.- Parameters:
name- The GeneralName- Throws:
PKIXNameConstraintValidatorException- If thename
-
checkExcluded
Check if the given GeneralName is contained in the excluded set.- Parameters:
name- The GeneralName.- Throws:
PKIXNameConstraintValidatorException- If thenameis excluded.
-
intersectPermittedSubtree
-
intersectPermittedSubtree
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
Adds a subtree to the excluded set of these name constraints.- Parameters:
subtree- A subtree with an excluded GeneralName.
-
toString
-