HASHworker

External objects

Properties Methods 

Properties

$callbackinstThe instance to which the worker object sends messages,for example when its processing has completed or has been cancelled.If you do not assign an instance to $callbackinst the worker object sends messages to itself
$errorcodeError code associated with the last action (zero means no error)
$errortextError text associated with the last action (empty means no error)
$stateA kWorkerState... constant that indicates the current state of the worker object
kWorkerStateCancelled kWorkerStateClear kWorkerStateComplete kWorkerStateInit kWorkerStateRunning
$threadcountThe number of active background threads for all instances of this type of worker object

Methods

$cancel$cancel() If required,cancels execution of worker on background thread.Will not return until the request has been cancelled
$cancelled$cancelled() Method called when the request has been cancelled
$completed$completed(wResults) Method called when the request completes.wResults is a row containing the results of executing the request
$inithash$inithash(vData,iHashType,vHashParameters) Initialises the object so it is ready to hash data using the specified hash type
$initsignature$initsignature(vData,iHashType,vPrivateKeyPEM[,bBlind=kFalse]) Initialises the object so it is ready to generate the signature for vData using iHashType and RSA encryption with private key xPrivateKeyPEM
$initverifyhash$initverifyhash(vData,iHashType,vHash[,xHMACkey]) Initialises the object so it is ready to generate the hash for vData using iHashType and compare it against previously generated vHash
$initverifysignature$initverifysignature(vData,iHashType,vPublicKeyPEM,vSignature) Initialises the object so it is ready to verify the signature for vData using iHashType ahd RSA encryption with public key xPublicKeyPEM
$run$run() Run worker on current thread.Returns true if the worker executed successfully
$start$start() Run worker on background thread.Returns true if the worker was successfully started