I need to manage a connection to a third-party system using an ad-hoc Java Connector. I'm looking for a way to store connection settings (host, port, user, password) in the ProcessApp.
I tried ENV vars but the password is stored clear, at least I didn't find how to encrypt.
Adding a server definition in the processApp settings looks a better option. The JavaScript API tw.env.MY_SERVER_SETTINGS returns all the information that I need for the connection as a JSON string that I can parse to a JSON object: "{"host":"localhost","port":"9090",..."authentication":{"username":"xxxxx","password":"{xor}xxxxx"}}"
However, I don't know how to decrypt the password, I didn't find any BAW javascript API to decrypt the password in the doc and neither any reference to the encryption method.
¿Is it possible to use an HTTP server definition to store my own connection settings? ¿how can I decrypt the passwd?
If not possible, what is the best option to store a password in a configuration parameter without making it clear for everyone?
------------------------------
Eduardo Izquierdo Lázaro
Automation Architect
DECIDE
MADRID
+34609893677
------------------------------