@ -58,7 +60,7 @@ public class EnvironmentDecryptApplicationInitializer implements
@@ -58,7 +60,7 @@ public class EnvironmentDecryptApplicationInitializer implements
@ -71,14 +73,15 @@ public class EnvironmentDecryptApplicationInitializer implements
@@ -71,14 +73,15 @@ public class EnvironmentDecryptApplicationInitializer implements
@ -91,8 +94,8 @@ public class EnvironmentDecryptApplicationInitializer implements
@@ -91,8 +94,8 @@ public class EnvironmentDecryptApplicationInitializer implements
// initialized, so we can fire an EnvironmentChangeEvent there to rebind
// @ConfigurationProperties, in case they were encrypted.
@ -112,7 +115,11 @@ public class EnvironmentDecryptApplicationInitializer implements
@@ -112,7 +115,11 @@ public class EnvironmentDecryptApplicationInitializer implements
@ -128,14 +135,14 @@ public class EnvironmentDecryptApplicationInitializer implements
@@ -128,14 +135,14 @@ public class EnvironmentDecryptApplicationInitializer implements
if(value.startsWith("{cipher}")){
value=value.substring("{cipher}".length());
try{
value=encryptor.decrypt(value);
value=this.encryptor.decrypt(value);
if(logger.isDebugEnabled()){
logger.debug("Decrypted: key="+key);
}
}
catch(Exceptione){
Stringmessage="Cannot decrypt: key="+key;
if(failOnError){
if(this.failOnError){
thrownewIllegalStateException(message,e);
}
if(logger.isDebugEnabled()){
@ -163,5 +170,5 @@ public class EnvironmentDecryptApplicationInitializer implements
@@ -163,5 +170,5 @@ public class EnvironmentDecryptApplicationInitializer implements