org.bouncycastle.jce.provider

Class PKIXNameConstraints

public class PKIXNameConstraints extends Object

Constructor Summary
PKIXNameConstraints()
Method Summary
voidaddExcludedSubtree(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(ASN1Sequence dns)
voidcheckPermitted(GeneralName name)
Checks if the given GeneralName is in the permitted set.
voidcheckPermittedDN(ASN1Sequence dns)
booleanequals(Object o)
inthashCode()
voidintersectPermittedSubtree(GeneralSubtree subtree)
Updates the permitted set of these name constraints with the intersection with the given subtree.
StringtoString()
protected SetunionDNS(Set excluded, String dns)

Constructor Detail

PKIXNameConstraints

public PKIXNameConstraints()

Method Detail

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)
Check if the given GeneralName is contained in the excluded set.

Parameters: name The GeneralName.

Throws: CertPathValidatorException If the name is excluded.

checkExcludedDN

public void checkExcludedDN(ASN1Sequence dns)

checkPermitted

public void checkPermitted(GeneralName name)
Checks if the given GeneralName is in the permitted set.

Parameters: name The GeneralName

Throws: CertPathValidatorException If the name

checkPermittedDN

public void checkPermittedDN(ASN1Sequence dns)

equals

public boolean equals(Object o)

hashCode

public int hashCode()

intersectPermittedSubtree

public void intersectPermittedSubtree(GeneralSubtree subtree)
Updates the permitted set of these name constraints with the intersection with the given subtree.

Parameters: subtree A subtree with an excluded GeneralName.

toString

public String toString()

unionDNS

protected Set unionDNS(Set excluded, String dns)