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

Class Certificate

Wraps an X.509 certificate used in CMS signature validation info.

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

DR-IT Software documentation

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

Generated by DocFX