public class

PKIXNameConstraintValidator

extends Object
java.lang.Object
   ↳ org.bouncycastle.jce.provider.PKIXNameConstraintValidator

Summary

Public Constructors
PKIXNameConstraintValidator()
Public Methods
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 Methods
Set unionDNS(Set excluded, String dns)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PKIXNameConstraintValidator ()

Public Methods

public void addExcludedSubtree (GeneralSubtree subtree)

Adds a subtree to the excluded set of these name constraints.

Parameters
subtree A subtree with an excluded GeneralName.

public void checkExcluded (GeneralName name)

Check if the given GeneralName is contained in the excluded set.

Parameters
name The GeneralName.
Throws
PKIXNameConstraintValidatorException If the name is excluded.

public void checkExcludedDN (ASN1Sequence dns)

public void checkPermitted (GeneralName name)

Checks if the given GeneralName is in the permitted set.

Parameters
name The GeneralName

public void checkPermittedDN (ASN1Sequence dns)

public boolean equals (Object o)

public int hashCode ()

public void intersectEmptyPermittedSubtree (int nameType)

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

public String toString ()

Protected Methods

protected Set unionDNS (Set excluded, String dns)