Using the PGPEncrypt Service

How to:

The PGPEncrypt service emits byte messages which are input to a following service for transmission to a recipient. In a process flow, for example, this would place the PGPEncrypt service just before an Emit service on an edge. This edge usually has an End object that follows the emit operation, since the message is encrypted and cannot be used further in the process flow.


Top of page

x
Procedure: How to Configure the PGPEncrypt Service

To configure the PGPEncrypt service:

  1. Using iWay Designer, drag and drop the Service object icon from the toolbar to the workspace.

    The Service Name and Description dialog box opens.

  2. In the Name field, type a new name for this Service object, and leave the default value (Service object) in the Description field.
  3. Click Next.

    The Service Type dialog box opens.

  4. Select Class Name and enter PGPEncrypt.
  5. Click Next.

    The Properties dialog box opens, as shown in the following image.

  6. Provide the appropriate values for the properties as shown in this example.

    If Passphrase is specified for the Cryptographic method property, enter the pass phrase, otherwise enter the alias for the key pair method.

  7. Click Finish.

    The new Service object appears in the workspace.

    You can now construct a process flow for the PGPEncrypt Service object with a Start and an End edge.

    Since the file being used is encrypted before any action is performed, the file must be decrypted. In this example, test the process flow with a channel and write the encrypted output to a directory.

  8. Validate the process flow and publish it to the Registry for use in channel configuration.
  9. Using the iWay Service Manager Administration Console, add the process flow to a new route (for example, pgpencryptRt).
  10. Construct a new channel (for example, PGPEncryptSvc).
  11. Define an inlet for the channel, which consists of a File listener to pick up the encrypted file.
  12. Add the defined route (for example, pgpencryptRt) to the channel.
  13. Define a default outlet for the channel.
  14. Build, deploy, and start the channel.
  15. Input a file (for example, hello.xml) to be encrypted by the PGPEncryptSvc channel.
  16. Pick up the encrypted file at the default outlet of the PGPEncryptSvc channel.
  17. Input the encrypted file to be picked up by the PGPReceiver channel, which was configured earlier in Testing Document Encryption and Decryption.

    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