SDAC

TCREncryptor.InvalidHashAction Property

Specifies the action to perform on data fetching when hash data is invalid.

Class

TCREncryptor

Syntax

property InvalidHashAction: TCRInvalidHashAction default ihFail;

Remarks

Use InvalidHashAction to specify the action to perform on data fetching when hash data is invalid. This property is used only if hash is stored with the encrypted data (the DataHeader property is set to ehTagAndHash). Default value is ihFail.

If the DataHeader property is set to ehTagAndHash, then on data fetching from a server the hash check is performed for each record. After data decryption its hash is calculated and compared with the hash stored in the field. If these values don't coincide, it means that the stored data is incorrect, and depending on the value of the InvalidHashAction property one of the following actions is performed:

ihFail - the EInvalidHash exception is raised and further data reading from the server is interrupted.

ihSkipData - the value of the field for this record is set to Null. No exception is raised.

ihIgnoreError - in spite of the fact that the data is not valid, the value is set in the field. No exception is raised.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback