X509NameConstraintsExtension(X509AlternativeNameCollection, X509AlternativeNameCollection) Constructor

Initializes a new instance of X509NameConstraintsExtension class from a collection of explicitly permitted and excluded subtrees. Name Constraints extension is always marked critical.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public X509NameConstraintsExtension(
	X509AlternativeNameCollection permittedSubtree,
	X509AlternativeNameCollection excludedSubtree
)

Parameters

permittedSubtree  X509AlternativeNameCollection
A collection of explicitly permitted names and name patterns.
excludedSubtree  X509AlternativeNameCollection
A collection of explicitly disallowed names and name patterns.

Remarks

Each subtree alone is optional. However, at least one subtree must be provided.

Exceptions

ArgumentExceptionpermittedSubtree and excludedSubtree parameters are null;

See Also