Class Certificate
Wraps an X.509 certificate used in CMS signature validation info.
Inherited Members
Namespace: DRIT.Pdf.Security
Assembly: DRIT.Pdf.dll
Syntax
public sealed class Certificate
Constructors
Certificate(byte[])
Creates from DER-encoded bytes.
Declaration
public Certificate(byte[] derBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | derBytes |
Certificate(X509Certificate2)
Creates from an existing X509Certificate2 instance.
Declaration
public Certificate(X509Certificate2 cert)
Parameters
| Type | Name | Description |
|---|---|---|
| X509Certificate2 | cert |
Certificate(string)
Creates from a file path (DER or PEM).
Declaration
public Certificate(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath |
Properties
Subject
Full subject distinguished name.
Declaration
public string Subject { get; }
Property Value
| Type | Description |
|---|---|
| string |
SubjectCommonName
Certificate subject CN value when available.
Declaration
public string SubjectCommonName { get; }
Property Value
| Type | Description |
|---|---|
| string |