Skip to main content

generateSignature

Generates a new signature with the data passed.

Parameters
Who: String indicating the person who signed.
Why: String indicating the reason for signing.
Where: String indicating where the signature was captured.
IntegrityKey: A value that indicates the type of integrity that will be applied to the signature. It can be one of the following:
  • Module.KeyType.None
  • Module.KeyType.MD5
  • Module.KeyType.SHA-1
  • Module.KeyType SHA-224
  • Module.KeyType.SHA-256
  • Module.KeyType.SHA-384
  • Module.KeyType.SHA-512
DocumentHash: Hash object indicating the document that's to be bound with the signature. This value can be null if we don’t desire to bind any document to the signature.
Strokes: a vector with the captured strokes.
Digitizer_Characteristics: DigitizerCharacteristics object with the characteristics of the digitizer that capture the signature strokes.
DigitizerInfo: String indicating information about the digitizer.
NicInfo: String indicating a unique ID for the device that captures the signature.
TimeRes: Integer indicating the resolution of the time.
Return values
The function returns a promise that resolves upon success to true or raises an exception.