BasicConstraints object

[CAPICOM is a 32-bit only component that is available for use in the following operating systems: Windows Server 2008, Windows Vista, Windows XP. Instead, use the X509BasicConstraintsExtension Class in the System.Security.Cryptography.X509Certificates namespace.]

The BasicConstraints object represents the basic constraints extension of a certificate.

When to use

The BasicConstraints object is used to perform the following tasks:

  • Determine whether the basic constraints extension is present.
  • Determine whether the basic constraints extension is marked critical.
  • Determine whether the certificate is constrained to certificate authorities.
  • Determine whether the path length constraint is present and retrieve the path length constraint value.

Members

The BasicConstraints object has these types of members:

Properties

The BasicConstraints object has these properties.

Property Access type Description
IsCertificateAuthority
Read-only
Retrieves a Boolean value that indicates whether the certificate is for a certification authority (CA).
IsCritical
Read-only
Retrieves a Boolean value that indicates whether the basic constraint extension is marked critical.
IsPathLenConstraintPresent
Read-only
Retrieves a Boolean value that indicates whether the certificate's path length constraint is present.
IsPresent
Read-only
Retrieves a Boolean value that indicates whether the basic constraints extension is present. This is the default property.
PathLenConstraint
Read-only
Retrieves the value of the path length constraint.

 

Remarks

The BasicConstraints object cannot be created.

Requirements

Requirement Value
End of client support
Windows Vista
End of server support
Windows Server 2008
Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

Cryptography Objects