• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Certificate

Wraps an X.509 certificate used for digitally signing a document. Provides a lightweight, document-focused view of the underlying X509Certificate2.

Inheritance
object
Certificate
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX