Table of Contents

Class ExtendedKeyUsageExtension

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

Class representing "Extended Key Usage" extension.

public class ExtendedKeyUsageExtension : CertificateExtension
Inheritance
ExtendedKeyUsageExtension
Inherited Members

Constructors

ExtendedKeyUsageExtension(IList<string>)

public ExtendedKeyUsageExtension(IList<string> extendedKeyUsageOids)

Parameters

extendedKeyUsageOids IList<string>

Fields

ANY_EXTENDED_KEY_USAGE_OID

public const string ANY_EXTENDED_KEY_USAGE_OID = "2.5.29.37.0"

Field Value

string

CLIENT_AUTH

public const string CLIENT_AUTH = "1.3.6.1.5.5.7.3.2"

Field Value

string

CODE_SIGNING

public const string CODE_SIGNING = "1.3.6.1.5.5.7.3.3"

Field Value

string

OCSP_SIGNING

public const string OCSP_SIGNING = "1.3.6.1.5.5.7.3.9"

Field Value

string

TIME_STAMPING

public const string TIME_STAMPING = "1.3.6.1.5.5.7.3.8"

Field Value

string

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 all OIDs are present in certificate extension, false otherwise

Remarks

Check if this extension is present in the provided certificate. In case of ExtendedKeyUsageExtension , check if this extended key usage OIDs are present. Other values may be present as well.