Method SetFinalDocumentHashAsync
SetFinalDocumentHashAsync(Byte[], Boolean)
Sets the final document hash to be signed.
Declaration
public Task<SetFinalDocHashResult> SetFinalDocumentHashAsync(byte[] hash, bool swSign = true)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | hash | The final document hash. |
System.Boolean | swSign | If set to false, the cryptographic signature may be done by the device. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SetFinalDocHashResult> | The awaitable result of this operation. |
Remarks
The cryptographic signature is done by the signature device provided
the device supports it and
the swSign parameter is set to false.
Else the signing is done in this library.
In the latter case, the task completes when the signing is finished. In the former case, the task completes when
a button on the hash dialog is clicked or
StopSignatureCapture() is called or
a timeout is reached.