public class PKIXNameConstraintValidator extends Object implements NameConstraintValidator
Constructor and Description |
---|
PKIXNameConstraintValidator() |
Modifier and Type | Method and Description |
---|---|
void |
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 |
checkPermitted(GeneralName name)
Checks if the given GeneralName is in the permitted set.
|
boolean |
equals(Object o) |
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.
|
String |
toString() |
public void checkPermitted(GeneralName name) throws NameConstraintValidatorException
checkPermitted
in interface NameConstraintValidator
name
- The GeneralNameNameConstraintValidatorException
- If the name
public void checkExcluded(GeneralName name) throws NameConstraintValidatorException
checkExcluded
in interface NameConstraintValidator
name
- The GeneralName.NameConstraintValidatorException
- If the name
is
excluded.public void intersectPermittedSubtree(GeneralSubtree permitted)
intersectPermittedSubtree
in interface NameConstraintValidator
public void intersectPermittedSubtree(GeneralSubtree[] permitted)
intersectPermittedSubtree
in interface NameConstraintValidator
permitted
- The permitted subtreespublic void intersectEmptyPermittedSubtree(int nameType)
intersectEmptyPermittedSubtree
in interface NameConstraintValidator
public void addExcludedSubtree(GeneralSubtree subtree)
addExcludedSubtree
in interface NameConstraintValidator
subtree
- A subtree with an excluded GeneralName.Copyright © 2020 BouncyCastle.org. All rights reserved.