Package org.bouncycastle.jce.provider
Class PKIXNameConstraintValidator
java.lang.Object
org.bouncycastle.jce.provider.PKIXNameConstraintValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExcludedSubtree
(GeneralSubtree subtree) Adds a subtree to the excluded set of these name constraints.void
checkExcluded
(GeneralName name) Check if the given GeneralName is contained in the excluded set.void
void
checkPermitted
(GeneralName name) Checks if the given GeneralName is in the permitted set.void
boolean
int
hashCode()
void
intersectEmptyPermittedSubtree
(int nameType) void
intersectPermittedSubtree
(GeneralSubtree permitted) void
intersectPermittedSubtree
(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 thename
is 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
-