Interface IExternalSigner
Abstraction for producing an external CMS (PKCS#7) detached signature over a PDF byte range.
Namespace: Telerik.Documents.Fixed.Model.DigitalSignatures
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public interface IExternalSigner
Remarks
Implement this interface when integrating custom or third‑party signing components (e.g. HSMs, smart cards, remote signing services). The implementation is responsible for:
- Computing the digest of the PDF byte range data.
- Building a CMS SignedData structure whose signature value matches the specified DigestAlgorithm.
- Optionally applying an RFC 3161 timestamp when TimeStampServer is provided. The returned value must be a detached SignedData (i.e. encapsulated content is omitted) suitable for embedding directly in a PDF signature dictionary.
Methods
Sign(Byte[], SignatureSettings)
Builds a detached CMS (PKCS#7) signature for the provided PDF byte range data using the supplied settings.
Declaration
byte[] Sign(byte[] pdfByteRangeData, SignatureSettings settings)
Parameters
|
System.Byte[]
pdfByteRangeData
The raw PDF byte range data (document content excluding the signature placeholder) whose digest will be computed and signed. |
|
SignatureSettings
settings
Signature generation settings controlling digest algorithm and timestamping. |
Returns
|
System.Byte[]
Byte array containing the CMS SignedData structure (detached) ready for embedding in a PDF. |