Back ForwardWorking with the PegaRULES Database
How to encrypt the Storage Streams of selected classes

Basics

Advanced featureOptionally, you can enable configuration of the Storage Stream or BLOB (pzPVStream ) column for rows of the PegaRULES database corresponding to specific classes. PROJ-474 SOLOM 5.3

Encryption occurs when Process Commander saves an instance of the class; decryption occurs when Process Commander retrieves and opens an instance.

This feature is unrelated to any encryption of the database provided through database software or software provided by others.

Procedure

1. Before you create any instances of the classes, update the prconfig.xml file (on each node) to include the following setting:

<env name="crypto/sitecipherclass" value="com.pega.pegarules.crypto.CCCCCC" />

where CCCCCC is the name of your encryption interface.

NoteYour Java code can follow the model in the supplied sample PRCipherSampleBF, but to ensure the security and uniqueness of your encryption implementation, do not use the unmodified sample.

2. To make the prconfig.xml setting take effect, stop and restart (or redeploy) the system.

3. Open each Class form that is to hold instances with encrypted Storage Stream values. Select the Encrypt BLOB? checkbox on the Basic tab. Save the Class form. (This checkbox affects only the BLOB column for instances of one single class. Update this checkbox for each class to be affected.) BUG-3092 rejected

4. Encryption is enabled. Your application can create instances of the class normally.

Build an encryption cypher

Process Commander does not include encryption software. The sample Java class PRCipherSampleBF exposes the SunJCE Java Cryptography Extension provider (in your system's JDK) of the Blowfish algorithm. To ensure the security and uniqueness of your encryption implementation, do not implement this sample.

1. Code the class to implement the Public API IPRCipher interface.

2. Place the resulting JAR file in a directory provided by your application server for external libraries.

3. Update the prconfig.xml file to include the new JAR files in Process Commander class paths. See the Pega Developer Network article PDNPRKB-20931 About the Process Commander class paths.

Notes and limitations

CautionThis facility is most useful for work objects, assignments, or attachments. If a ZIP archive contains instances of classes with encrypted Storage Stream values, the ZIP archive can only be imported to another system that uses the identical cipher algorithm.

CautionCPU processing for encryption and decryption can affect overall system performance, depending on data volumes and algorithms. To help you assess the impact, six Decimal properties on the Full Details display of the Performance tool record times and counts. (Elapsed time and CPU times are components of other statistics that measure database times. CPU statistics are available only for Windows platforms. All times are in seconds.)

Encryption of the Storage Stream column for one class does not affect the Storage Stream of other classes that may occupy the same table in the PegaRULES database,

Definitions prconfig.xml file, Storage Stream
Related topics About Class rules
Performance tool — Full details display

UpWorking with the PegaRULES database