org.bouncycastle.jce.provider
Class PKIXNameConstraints
java.lang.Object
org.bouncycastle.jce.provider.PKIXNameConstraints
public class PKIXNameConstraints
extends java.lang.Object
PKIXNameConstraints
public PKIXNameConstraints()
addExcludedSubtree
public void addExcludedSubtree(GeneralSubtree subtree)
Adds a subtree to the excluded set of these name constraints.
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.
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.
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.
subtree
- A subtree with an excluded GeneralName.
toString
public String toString()
unionDNS
protected Set unionDNS(Set excluded,
String dns)