Class Certificate
Wraps an X.509 certificate used for digitally signing a document. Provides a lightweight, document-focused view of the underlying X509Certificate2.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class Certificate
Constructors
Certificate(X509Certificate2)
Initializes a new instance of the Certificate class.
Declaration
public Certificate(X509Certificate2 certificate)
Parameters
| Type | Name | Description |
|---|---|---|
| X509Certificate2 | certificate | The certificate used by the operation.. |
Certificate(string, string)
Initializes a new instance of the Certificate class.
Declaration
public Certificate(string path, string password = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The target location or path.. |
| string | password | The password used for the operation.. |
Properties
Issuer
Gets issuer.
Declaration
public string Issuer { get; }
Property Value
| Type | Description |
|---|---|
| string |
NotAfter
Gets not after.
Declaration
public DateTime? NotAfter { get; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
NotBefore
Gets not before.
Declaration
public DateTime? NotBefore { get; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Subject
Gets subject.
Declaration
public string Subject { get; }
Property Value
| Type | Description |
|---|---|
| string |
SubjectCommonName
Gets subject common name.
Declaration
public string SubjectCommonName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Thumbprint
Gets thumbprint.
Declaration
public string Thumbprint { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetRawData()
Returns the requested raw Data.
Declaration
public byte[] GetRawData()
Returns
| Type | Description |
|---|---|
| byte[] | The resulting value. |
ToX509Certificate2()
Converts this object to x509 Certificate2.
Declaration
public X509Certificate2 ToX509Certificate2()
Returns
| Type | Description |
|---|---|
| X509Certificate2 | The resulting value. |