Class Signer
Computes a PKCS#7 CMS detached digital signature over PDF byte ranges.
Inherited Members
Namespace: DRIT.Pdf.Security
Assembly: DRIT.Pdf.dll
Syntax
public sealed class Signer
Constructors
Signer(DigitalId)
Creates a signer backed by digitalId.
Declaration
public Signer(DigitalId digitalId)
Parameters
| Type | Name | Description |
|---|---|---|
| DigitalId | digitalId |
Properties
AuthorPermission
Certification permission applied by author signatures (DocMDP).
Declaration
public UserAccessPermissions AuthorPermission { get; set; }
Property Value
| Type | Description |
|---|---|
| UserAccessPermissions |
PadesMode
When true uses the PAdES (ETSI.CAdES.detached) SubFilter;
otherwise uses the classic adbe.pkcs7.detached SubFilter.
Declaration
public bool PadesMode { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SignatureFormat
Signature encoding/profile format.
Declaration
public SignatureFormat SignatureFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| SignatureFormat |
SignatureLevel
Requested PAdES profile level.
Declaration
public SignatureLevel SignatureLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| SignatureLevel |
SignaturePolicy
Optional ETSI signature policy identifier to embed in the signature (ETSI EN 319 142-1). When set, the policy OID (and hash, if present) is written into the signature's signature-policy-identifier attribute.
Declaration
public SignaturePolicyIdentifier? SignaturePolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| SignaturePolicyIdentifier |
Timestamper
Optional TSA configuration used for timestamped signatures.
Declaration
public Timestamper? Timestamper { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamper |
ValidationInfo
Optional revocation / chain information to embed in the signature (LTV).
Declaration
public SignatureValidationInfo? ValidationInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| SignatureValidationInfo |