In BW6, I will wish to decode a password property to retrieve the cleared string.
Do you have a method?
I thank you in advance
For example if u use a module property , u can follow these steps to read the password in code java.
Import com.tibco.security ( you can find the jar in tibco\bw6\bw\6.3\p2repos\features)
Then in your code u add this :
//To retrieve the value from the module property
password = activityContext.getModuleProperty("/CONNECTION/PASSWORD");
// Decrypt the value.
dbPassword = new String(ObfuscationEngine.decrypt(dbPassword));
Hope this gonna help out your work.
Can you give the exact location for the JAr file under P2repos/features.
Code didn't worked for me - i tried the same in BW5.12 and worked using plugin properties.
This Question already has a 'Best Answer'. If you believe this answer is better, you must first uncheck the current Best Answer