Message-ID: <200484830.297852.1368871362608.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_297851_2000703515.1368871362063" ------=_Part_297851_2000703515.1368871362063 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
When using the Resource Loader it can be handy to obfuscate resources' p= assword instead of leaving them in plain text, readable from any person who= has access to the loader's configuration file.
Although less useful, it is nevertheless possible to use crypted passwor= ds with the API as well.
|JDBC and JMS|
This is valid for b= oth JDBC and JMS resources even if the examples only demonstrate JDBC.<= /td>
The password encryption mechanism is not automatic. You need to configur= e the crypted password yourself as BTM won't touch the loader's configurati= on file.
You can get a crypted version of your password with the bitronix.tm.internal.CryptoEngine clas=
s. It contains a
main method so you can call it from the comma=
You can just give it the password to encrypt on the command line to get = its crypted version:
By default, the DES cipher will be used. You can override that from the = command line by specifying another cipher as a second argument. Please note= that the only cipher that is distributed with the JVM by default is DES.= p>
This is not 100% safe as the = password can be reverted. Take this feature as a convenience to avoid leavi= ng an important password world-readable.
Once you have the crypted version of your password, you just need to pas= te it instead of the plain text version. For instance in a Resource Loader = configuration file:
or in the API calls:
BTM will automatically decrypt the password before using it to build the= XA connection producer.
Only driver property =
|Bug in version 1.2|
This feature is s=
lightly buggy in version 1.2 and earlier as it does not work with API calls=
, only the resource loader. See: BTM-7.
------=_Part_297851_2000703515.1368871362063 Content-Type: image/gif Content-Transfer-Encoding: base64 Content-Location: file:///C:/shim.gif R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== ------=_Part_297851_2000703515.1368871362063--