DAGetEncryptionKeyValidation
Direct access functionality, Security, Diagnostics
Description
Reports the validation status retained by a Direct Access handle opened with a hexadecimal file-encryption key
Syntax
Delphi
Function TPDFlib.DAGetEncryptionKeyValidation(FileHandle: Integer): Integer;ActiveX
Function PDFlib::DAGetEncryptionKeyValidation(FileHandle As Long) As Long
Available on IPDFlibrary5 from type library version 3.6
DLL
int DLDAGetEncryptionKeyValidation(int InstanceID, int FileHandle);Parameters
| FileHandle | Handle returned by DAOpenFileWithEncryptionKey; other open entry points report PDF_RAW_KEY_VALIDATION_NONE |
|---|
Return values
PDF_RAW_KEY_VALIDATION_VERIFIED | The supplied key matched the revision-appropriate verifier |
|---|---|
PDF_RAW_KEY_VALIDATION_UNVERIFIED | No usable verifier was present and the open explicitly allowed that condition |
PDF_RAW_KEY_VALIDATION_NONE | The handle is invalid or was not opened through a raw-key entry point |
Remarks
A mismatching available verifier prevents the open, so this method never reports a mismatch as unverified