public class PKIXNameConstraintValidator extends Object
| 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.
|
boolean |
equals(Object o) |
int |
hashCode() |
void |
checkExcluded(GeneralName name)
Check if the given GeneralName is contained in the excluded set.
|
void |
checkExcludedDN(ASN1Sequence dns) |
void |
checkPermitted(GeneralName name)
Checks if the given GeneralName is in the permitted set.
|
void |
checkPermittedDN(ASN1Sequence dns) |
void |
intersectEmptyPermittedSubtree(int nameType) |
void |
intersectPermittedSubtree(ASN1Sequence permitted)
Updates the permitted set of these name constraints with the intersection
with the given subtree.
|
String |
toString() |
protected Set |
unionDNS(Set excluded,
String dns) |
public void checkPermittedDN(ASN1Sequence dns) throws PKIXNameConstraintValidatorException
public void checkExcludedDN(ASN1Sequence dns) throws PKIXNameConstraintValidatorException
public void checkPermitted(GeneralName name) throws PKIXNameConstraintValidatorException
name - The GeneralNamePKIXNameConstraintValidatorException - If the namepublic void checkExcluded(GeneralName name) throws PKIXNameConstraintValidatorException
name - The GeneralName.PKIXNameConstraintValidatorException - If the name is
excluded.public void intersectPermittedSubtree(ASN1Sequence permitted)
permitted - The permitted subtreespublic void intersectEmptyPermittedSubtree(int nameType)
public void addExcludedSubtree(GeneralSubtree subtree)
subtree - A subtree with an excluded GeneralName.Copyright © 2015. All rights reserved.