TCmsSigner Class
Represents an abstract class to create a pdf PKCS7 DER encoded signature. Descend from this class to create your own SignerFactory implementations.
Syntax
Unit: FlexCel.Core
TCmsSigner = class(TObject);
Methods
Name | Description |
---|---|
Write | This method is called each time new data is added to the pdf. When overwriting this method, use it to incrementally calculate the hash of the data. |
GetSignature | This method is called only once at the end of the pdf creation. It should release all handles and temporary memory used to calculate the data hash, and return a PKCS7 DER-encoded signature. |
EstimateLength | Returns the estimated length for the data that will be returned in GetSignature. Note that this method will be called before finishing the pdf, so you still don't know what the final signature will be. You can return a number larger than what GetSignature will return at the end of the pdf creation, but never smaller. |