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.
x
Procedure: How to Test Document Encryption and Decryption
To
test document encryption and decryption:
-
Add the preemitter (com.ibi.preemit.PGPEncrypt) that you configured
to an outlet, for example, pgpoutlet.
-
Construct a channel, for example, PGPSender, with a
file listener, a move route, and the outlet (pgpoutlet).
-
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.
-
Construct a second channel, for example, PGPReceiver,
with the PGPInlet, a move route, and a default outlet.
-
Build, deploy, and, start both the channels.
-
Place a file to be encrypted, for example, hello.xml,
in the PGPSender channel.
-
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.