Class Index

Classes


Class PDFNet.SignatureHandler

PDFNet.SignatureHandler

Class Summary
Constructor Attributes Constructor Name and Description
 
SignatureHandler instances are responsible for defining the digest and cipher algorithms to create and/or validate a signed PDF document.
Method Summary
Method Attributes Method Name and Description
 
Calculates the actual signature using client implemented signing methods.
 
Destructor
 
Gets the name of this SignatureHandler.
 
Resets any data appending and signature calculations done so far.
Class Detail
PDFNet.SignatureHandler(id)
SignatureHandler instances are responsible for defining the digest and cipher algorithms to create and/or validate a signed PDF document. SignatureHandlers are added to PDFDoc instances by calling the [PDFDoc].addSignatureHandler method.
Parameters:
id
Method Detail
{signaturedata} createSignature()
Calculates the actual signature using client implemented signing methods. The returned value (byte array) will be written as the /Contents entry in the signature dictionary.
Returns:
{signaturedata} A promise that resolves to the calculated signature data.

destructor()
Destructor

{string} getName()
Gets the name of this SignatureHandler. The name of the SignatureHandler is what identifies this SignatureHandler from all others. This name is also added to the PDF as the value of /Filter entry in the signature dictionary.
Returns:
{string} A promise that resolves to the name of this SignatureHandler.

{boolean} reset()
Resets any data appending and signature calculations done so far. This method should allow PDFNet to restart the whole signature calculation process. It is important that when this method is invoked, any data processed with the AppendData method should be discarded.
Returns:
{boolean} A promise that resolves to true if there are no errors, otherwise false.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 09 2016 14:32:42 GMT-0700 (PDT)