Retrieving or Changing Keys to Encrypt/Decrypt Data (KeyIDs)

This property is available in EFT Server 5.2 and later.

Use the ICIPgpActionParams interface KeyIDs property to retrieve the list of OpenPGP key IDs for encrypting/decrypting keys. You can also use the property to change the keys used to encrypt/decrypt.

In EFT Server 5.2 through 6.0.x

HRESULT KeyIDs([out, retval] SAFEARRAY(BSTR) *pVal);

HRESULT KeyIDs([in] SAFEARRAY(BSTR) newVal);

Example:

pgpParams.KeyIDs = Array("0x067194CB", "0x4567890F")

In EFT Server 6.1

HRESULT KeyIDs([out, retval] VARIANT *pVal);

HRESULT KeyIDs([in] VARIANT newVal);

Example (VBScript):

For retrieving:

For Each key In PGPParams.KeyIDs

MsgBox "Key " & key & " will be used in encryption"

Next

For specifying:

PGPParams.KeyIDs = Array("0x01234567", "0x89ABCDEF")