Class SignatureContent
Signature content metadata extracted from CMS payload.
Inherited Members
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. |
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[] |