org.bouncycastle.jce.provider

Class PKIXNameConstraints


public class PKIXNameConstraints
extends java.lang.Object

Constructor Summary

PKIXNameConstraints()

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
intersectPermittedSubtree(GeneralSubtree subtree)
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

PKIXNameConstraints

public PKIXNameConstraints()

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 CertPathValidatorException
Check if the given GeneralName is contained in the excluded set.
Parameters:
name - The GeneralName.

checkExcludedDN

public void checkExcludedDN(ASN1Sequence dns)
            throws CertPathValidatorException

checkPermitted

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

checkPermittedDN

public void checkPermittedDN(ASN1Sequence dns)
            throws CertPathValidatorException

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)