Package org.bouncycastle.pkix
Class PKIXNameConstraintValidator
java.lang.Object
org.bouncycastle.pkix.PKIXNameConstraintValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExcludedSubtree
(org.bouncycastle.asn1.x509.GeneralSubtree subtree) Adds a subtree to the excluded set of these name constraints.void
checkExcluded
(org.bouncycastle.asn1.x509.GeneralName name) Check if the given GeneralName is contained in the excluded set.void
checkExcludedDN
(org.bouncycastle.asn1.ASN1Sequence dns) void
checkPermitted
(org.bouncycastle.asn1.x509.GeneralName name) Checks if the given GeneralName is in the permitted set.void
checkPermittedDN
(org.bouncycastle.asn1.ASN1Sequence dns) boolean
int
hashCode()
void
intersectEmptyPermittedSubtree
(int nameType) void
intersectPermittedSubtree
(org.bouncycastle.asn1.x509.GeneralSubtree permitted) void
intersectPermittedSubtree
(org.bouncycastle.asn1.x509.GeneralSubtree[] permitted) Updates the permitted set of these name constraints with the intersection with the given subtree.toString()
-
Constructor Details
-
PKIXNameConstraintValidator
public PKIXNameConstraintValidator()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
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 PKIXNameConstraintValidatorException Checks 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 PKIXNameConstraintValidatorException Check if the given GeneralName is contained in the excluded set.- Parameters:
name
- The GeneralName.- Throws:
PKIXNameConstraintValidatorException
- If thename
is 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
-