THotPDF.RecoverLoadedPublicKeyFilterKeys Method
Recovers the envelope keys of a loaded public-key encrypted document from the Recipients entries in its encryption dictionary. The method re-derives the document default key and every named crypt filter that carries its own envelopes using the configured public-key key material
Declaration
procedure RecoverLoadedPublicKeyFilterKeys(EncryptDict: THPDFDictionaryObject);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
EncryptDict | Loaded encryption dictionary whose /CF crypt filters and Recipients entries supply the envelopes, such as the dictionary resolved by the load path |
Return value
This member does not return a value
Usage notes
- The method runs automatically during load and reload when recipient key material is already available; call it again after supplying new key material on a loaded public-key document
- Crypt filters without their own Recipients entry keep decrypting with the document default key, matching result -1 of TryLoadedPubSecFilterKey
- When a recipient cannot be authenticated the method discards every retained filter key so decryption fails closed
- The call is a no-op while no public-key key material is configured or after the revision crypt context has been validated