Package org.bouncycastle.asn1.x509
Class PKIXNameConstraintValidator
java.lang.Object
org.bouncycastle.asn1.x509.PKIXNameConstraintValidator
- All Implemented Interfaces:
NameConstraintValidator
-
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.voidcheckExcludedDN(X500Name dns) voidcheckPermitted(GeneralName name) Checks if the given GeneralName is in the permitted set.voidcheckPermittedDN(X500Name dns) booleaninthashCode()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
-
checkPermitted
Checks if the given GeneralName is in the permitted set.- Specified by:
checkPermittedin interfaceNameConstraintValidator- Parameters:
name- The GeneralName- Throws:
NameConstraintValidatorException- If thename
-
checkExcluded
Check if the given GeneralName is contained in the excluded set.- Specified by:
checkExcludedin interfaceNameConstraintValidator- Parameters:
name- The GeneralName.- Throws:
NameConstraintValidatorException- If thenameis excluded.
-
intersectPermittedSubtree
- Specified by:
intersectPermittedSubtreein interfaceNameConstraintValidator
-
intersectPermittedSubtree
Updates the permitted set of these name constraints with the intersection with the given subtree.- Specified by:
intersectPermittedSubtreein interfaceNameConstraintValidator- Parameters:
permitted- The permitted subtrees
-
intersectEmptyPermittedSubtree
public void intersectEmptyPermittedSubtree(int nameType) - Specified by:
intersectEmptyPermittedSubtreein interfaceNameConstraintValidator
-
addExcludedSubtree
Adds a subtree to the excluded set of these name constraints.- Specified by:
addExcludedSubtreein interfaceNameConstraintValidator- Parameters:
subtree- A subtree with an excluded GeneralName.
-
hashCode
public int hashCode() -
equals
-
checkPermittedDN
- Throws:
NameConstraintValidatorException
-
checkExcludedDN
- Throws:
NameConstraintValidatorException
-
toString
-