org.bouncycastle.jce.provider

Class PKIXNameConstraintValidator


public class PKIXNameConstraintValidator
extends java.lang.Object

Constructor Summary

PKIXNameConstraintValidator()

Method Summary

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
checkExcludedDN(ASN1Sequence dns)
void
checkPermitted(GeneralName name)
Checks if the given GeneralName is in the permitted set.
void
checkPermittedDN(ASN1Sequence dns)
boolean
equals(Object o)
int
hashCode()
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)

Constructor Details

PKIXNameConstraintValidator

public PKIXNameConstraintValidator()

Method Details

addExcludedSubtree

public void addExcludedSubtree(GeneralSubtree subtree)
Adds a subtree to the excluded set of these name constraints.
Parameters:
subtree - A subtree with an excluded GeneralName.

checkExcluded

public void checkExcluded(GeneralName name)
            throws PKIXNameConstraintValidatorException
Check if the given GeneralName is contained in the excluded set.
Parameters:
name - The GeneralName.
Throws:
PKIXNameConstraintValidatorException - If the name is excluded.

checkExcludedDN

public void checkExcludedDN(ASN1Sequence dns)
            throws PKIXNameConstraintValidatorException

checkPermitted

public void checkPermitted(GeneralName name)
            throws PKIXNameConstraintValidatorException
Checks if the given GeneralName is in the permitted set.
Parameters:
name - The GeneralName

checkPermittedDN

public void checkPermittedDN(ASN1Sequence dns)
            throws PKIXNameConstraintValidatorException

equals

public boolean equals(Object o)

hashCode

public int hashCode()

intersectEmptyPermittedSubtree

public void intersectEmptyPermittedSubtree(int nameType)

intersectPermittedSubtree

public void intersectPermittedSubtree(ASN1Sequence permitted)
Updates the permitted set of these name constraints with the intersection with the given subtree.
Parameters:
permitted - The permitted subtrees

toString

public String toString()

unionDNS

protected Set unionDNS(Set excluded,
                       String dns)