Bouncy Castle Cryptography Library 1.37

org.bouncycastle.jce.provider
Class PKIXNameConstraints

java.lang.Object
  extended by org.bouncycastle.jce.provider.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(java.lang.Object o)
           
 int hashCode()
           
 void intersectPermittedSubtree(GeneralSubtree subtree)
          Updates the permitted set of these name constraints with the intersection with the given subtree.
 java.lang.String toString()
           
protected  java.util.Set unionDNS(java.util.Set excluded, java.lang.String dns)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PKIXNameConstraints

public PKIXNameConstraints()
Method Detail

checkPermittedDN

public void checkPermittedDN(ASN1Sequence dns)
                      throws java.security.cert.CertPathValidatorException
Throws:
java.security.cert.CertPathValidatorException

checkExcludedDN

public void checkExcludedDN(ASN1Sequence dns)
                     throws java.security.cert.CertPathValidatorException
Throws:
java.security.cert.CertPathValidatorException

unionDNS

protected java.util.Set unionDNS(java.util.Set excluded,
                                 java.lang.String dns)

checkPermitted

public void checkPermitted(GeneralName name)
                    throws java.security.cert.CertPathValidatorException
Checks if the given GeneralName is in the permitted set.

Parameters:
name - The GeneralName
Throws:
java.security.cert.CertPathValidatorException - If the name

checkExcluded

public void checkExcluded(GeneralName name)
                   throws java.security.cert.CertPathValidatorException
Check if the given GeneralName is contained in the excluded set.

Parameters:
name - The GeneralName.
Throws:
java.security.cert.CertPathValidatorException - If the name is excluded.

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.

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.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Bouncy Castle Cryptography Library 1.37