Package org.bouncycastle.pkix
Class PKIXNameConstraintValidator
- java.lang.Object
-
- org.bouncycastle.pkix.PKIXNameConstraintValidator
-
public class PKIXNameConstraintValidator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PKIXNameConstraintValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExcludedSubtree(org.bouncycastle.asn1.x509.GeneralSubtree subtree)Adds a subtree to the excluded set of these name constraints.voidcheckExcluded(org.bouncycastle.asn1.x509.GeneralName name)Check if the given GeneralName is contained in the excluded set.voidcheckExcludedDN(org.bouncycastle.asn1.ASN1Sequence dns)voidcheckPermitted(org.bouncycastle.asn1.x509.GeneralName name)Checks if the given GeneralName is in the permitted set.voidcheckPermittedDN(org.bouncycastle.asn1.ASN1Sequence dns)booleanequals(java.lang.Object o)inthashCode()voidintersectEmptyPermittedSubtree(int nameType)voidintersectPermittedSubtree(org.bouncycastle.asn1.x509.GeneralSubtree permitted)voidintersectPermittedSubtree(org.bouncycastle.asn1.x509.GeneralSubtree[] permitted)Updates the permitted set of these name constraints with the intersection with the given subtree.java.lang.StringtoString()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
checkPermittedDN
public void checkPermittedDN(org.bouncycastle.asn1.ASN1Sequence dns) throws PKIXNameConstraintValidatorException
-
checkExcludedDN
public void checkExcludedDN(org.bouncycastle.asn1.ASN1Sequence dns) throws PKIXNameConstraintValidatorException
-
checkPermitted
public void checkPermitted(org.bouncycastle.asn1.x509.GeneralName name) throws PKIXNameConstraintValidatorExceptionChecks if the given GeneralName is in the permitted set.- Parameters:
name- The GeneralName- Throws:
PKIXNameConstraintValidatorException- If thename
-
checkExcluded
public void checkExcluded(org.bouncycastle.asn1.x509.GeneralName name) throws PKIXNameConstraintValidatorExceptionCheck if the given GeneralName is contained in the excluded set.- Parameters:
name- The GeneralName.- Throws:
PKIXNameConstraintValidatorException- If thenameis excluded.
-
intersectPermittedSubtree
public void intersectPermittedSubtree(org.bouncycastle.asn1.x509.GeneralSubtree permitted)
-
intersectPermittedSubtree
public void intersectPermittedSubtree(org.bouncycastle.asn1.x509.GeneralSubtree[] permitted)
Updates the permitted set of these name constraints with the intersection with the given subtree.- Parameters:
permitted- The permitted subtrees
-
intersectEmptyPermittedSubtree
public void intersectEmptyPermittedSubtree(int nameType)
-
addExcludedSubtree
public void addExcludedSubtree(org.bouncycastle.asn1.x509.GeneralSubtree subtree)
Adds a subtree to the excluded set of these name constraints.- Parameters:
subtree- A subtree with an excluded GeneralName.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-