Password Handling

You can use the obfuscate utility installed with TIBCO Runtime Agent to encrypt confidential information, such as passwords in property files, with an encryption key. The obfuscate utility rewrites a Java property file by encrypting property values that start with a #!! or #! prefix. The utility is located in TIB_TRA_HOME/bin.

If you plan to run the adapter locally, define the runtime password value to be a global variable. Before starting the adapter, include the runtime password as a client variable in the properties file and obfuscate it using the obfuscate utility.

For example, follow these steps to encrypt the password:

Procedure 

1. Define the password as myPassword as a global variable with no value.
2. Include the following entry in the TRA file of the adapter at runtime:

tibco.clientVar.myPassword=#!!passwordValue

3. Invoke the following command:

TIB_TRA_HOME/bin/obfuscate TRAFileName

For more information about how to use the obfuscate utility, see "Obfuscate Utility" in TIBCO Runtime Agent Installation.