support reading passwords from environment
Change-Id: I713bddf0e6fa2e8c90de7023c8ca13138fcc1fbe
Issue-ID: AAI-2083
Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
if(passwordValue.get().startsWith("OBF:")){
setTrustStorePassword(Password.deobfuscate(passwordValue.get()));
}else if(passwordValue.get().startsWith("ENV:")){
if(passwordValue.get().startsWith("OBF:")){
setTrustStorePassword(Password.deobfuscate(passwordValue.get()));
}else if(passwordValue.get().startsWith("ENV:")){
- setTrustStorePassword(System.getProperty(StringUtils.removeStart(passwordValue.get(), "ENV:")));
+ setTrustStorePassword(System.getenv(StringUtils.removeStart(passwordValue.get(), "ENV:")));
}
else{
setTrustStorePassword(passwordValue.get());
}
else{
setTrustStorePassword(passwordValue.get());
if(passwordValue.get().startsWith("OBF:")){
setKeyStorePassword(Password.deobfuscate(passwordValue.get()));
}else if(passwordValue.get().startsWith("ENV:")){
if(passwordValue.get().startsWith("OBF:")){
setKeyStorePassword(Password.deobfuscate(passwordValue.get()));
}else if(passwordValue.get().startsWith("ENV:")){
- setKeyStorePassword(System.getProperty(StringUtils.removeStart(passwordValue.get(), "ENV:")));
+ setKeyStorePassword(System.getenv(StringUtils.removeStart(passwordValue.get(), "ENV:")));
}
else{
setKeyStorePassword(passwordValue.get());
}
else{
setKeyStorePassword(passwordValue.get());