Table of Contents

Class BasicConstraintsExtension

Namespace
iText.Signatures.Validation.V1.Extensions
Assembly
itext.sign.dll

Class representing "Basic Constraints" certificate extension.

[Obsolete("since 8.0.5. To be removed.")]
public class BasicConstraintsExtension : CertificateExtension
Inheritance
BasicConstraintsExtension
Inherited Members

Constructors

BasicConstraintsExtension(bool)

Create new BasicConstraintsExtension instance using provided boolean value.

public BasicConstraintsExtension(bool ca)

Parameters

ca bool

boolean value, which represents if this certificate is a "Certificate Authority"

BasicConstraintsExtension(int)

Create new BasicConstraintsExtension instance using provided int path length.

public BasicConstraintsExtension(int pathLength)

Parameters

pathLength int

int value, which represents acceptable path length for this certificate as a "CA"

Methods

ExistsInCertificate(IX509Certificate)

Check if this extension is present in the provided certificate.

public override bool ExistsInCertificate(IX509Certificate certificate)

Parameters

certificate IX509Certificate

iText.Commons.Bouncycastle.Cert.IX509Certificate in which this extension shall be present

Returns

bool

true if this path length is less or equal to a one from the certificate, false otherwise

Remarks

Check if this extension is present in the provided certificate. In case of BasicConstraintsExtension , check if path length for this extension is less or equal to the path length, specified in the certificate.