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
Fields
ANY_EXTENDED_KEY_USAGE_OID
public const string ANY_EXTENDED_KEY_USAGE_OID = "2.5.29.37.0"
Field Value
CLIENT_AUTH
public const string CLIENT_AUTH = "1.3.6.1.5.5.7.3.2"
Field Value
CODE_SIGNING
public const string CODE_SIGNING = "1.3.6.1.5.5.7.3.3"
Field Value
OCSP_SIGNING
public const string OCSP_SIGNING = "1.3.6.1.5.5.7.3.9"
Field Value
TIME_STAMPING
public const string TIME_STAMPING = "1.3.6.1.5.5.7.3.8"
Field Value
Methods
ExistsInCertificate(IX509Certificate)
Check if this extension is present in the provided certificate.
public override bool ExistsInCertificate(IX509Certificate certificate)
Parameters
certificate
IX509CertificateiText.Commons.Bouncycastle.Cert.IX509Certificate in which this extension shall be present
Returns
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.