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