Creates a Basic Constraints extension.

Namespace: Org.Mentalis.Security.Tools
Assembly:   Org.Mentalis.Security.Tools (in Org.Mentalis.Security.Tools)
Version: 1.0.0.0

Syntax

Visual Basic (Declaration)
Public Shared Function CreateBasicConstraintsExtension ( _
	isCA As Boolean, _
	pathLength As Integer, _
	critical As Boolean _
) As X509Extension
C#
public static X509Extension CreateBasicConstraintsExtension (
	bool isCA,
	int pathLength,
	bool critical
)
Visual C++
public:
static X509Extension^ CreateBasicConstraintsExtension (
	bool isCA, 
	int pathLength, 
	bool critical
)

Parameters

isCA
System.Boolean
true if this certificate represents a certificate authority, false otherwise.
pathLength
System.Int32
The maximum length of the validation path.
critical
System.Boolean
true if the extension is marked as critical, false otherwise.

Return Value

A X509Extension instance.

Remarks

If pathLength is less than or equal to zero, then the path length is omitted from the extension.