Testing Document Encryption and Decryption

How to:

You can test document encryption and decryption by constructing a channel that uses the preemitter (com.ibi.preemit.PGPEncrypt) and preparser (com.ibi.preparsers.PGPDecrypt) that was configured.


Top of page

x
Procedure: How to Test Document Encryption and Decryption

To test document encryption and decryption:

  1. Add the preemitter (com.ibi.preemit.PGPEncrypt) that you configured to an outlet, for example, pgpoutlet.
  2. Construct a channel, for example, PGPSender, with a file listener, a move route, and the outlet (pgpoutlet).
  3. Create a new inlet, for example, PGPInlet, and add a file listener to this inlet and the preparser (com.ibi.preparsers.PGPDecrypt) that you configured.
  4. Construct a second channel, for example, PGPReceiver, with the PGPInlet, a move route, and a default outlet.
  5. Build, deploy, and, start both the channels.
  6. Place a file to be encrypted, for example, hello.xml, in the PGPSender channel.
  7. Pick up the file at the outlet of the PGPSender channel and place it in the PGPReceiver channel.

    The file obtained at the default outlet of the PGPReceiver channel should be the same as the original hello.xml file before encryption.


iWay Software