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

Class SignatureContent

Signature content metadata extracted from CMS payload.

Inheritance
object
SignatureContent
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 SignatureContent

Properties

SignerCertificate

Signer certificate extracted from the signature payload.

Declaration
public Certificate SignerCertificate { get; }
Property Value
Type Description
Certificate

Methods

GetHash(string)

Computes a cryptographic hash of the raw signature data using the specified algorithm.

Declaration
public byte[] GetHash(string algorithm = "SHA256")
Parameters
Type Name Description
string algorithm

The hash algorithm name (e.g. "SHA256", "SHA384", "SHA512"). Defaults to "SHA256".

Returns
Type Description
byte[]

The computed hash, or an empty array when no raw data is available.

GetRawData()

Returns the raw DER-encoded CMS bytes of the signature, or an empty array when no raw data is available.

Declaration
public byte[] GetRawData()
Returns
Type Description
byte[]
Back to top

DR-IT Software documentation

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

Generated by DocFX