Springboot 2.0 upgrade
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / onap / so / apihandler / common / CamundaTaskClient.java
index 166a5c4..bb0a4b0 100644 (file)
@@ -49,7 +49,7 @@ public class CamundaTaskClient extends RequestClient{
                if(props!=null){
                        encryptedCredentials = props.getProperty(CommonConstants.CAMUNDA_AUTH);
                        if(encryptedCredentials != null){
-                               String userCredentials = getEncryptedPropValue(encryptedCredentials, CommonConstants.DEFAULT_BPEL_AUTH, CommonConstants.ENCRYPTION_KEY);
+                               String userCredentials = getEncryptedPropValue(encryptedCredentials, CommonConstants.DEFAULT_BPEL_AUTH, props.getProperty(CommonConstants.ENCRYPTION_KEY_PROP));
                                if(userCredentials != null){
                                        post.addHeader("Authorization", "Basic " + DatatypeConverter
                                                .printBase64Binary(userCredentials.getBytes()));
@@ -80,7 +80,7 @@ public class CamundaTaskClient extends RequestClient{
                if(props!=null){
                        encryptedCredentials = props.getProperty(CommonConstants.CAMUNDA_AUTH);
                        if(encryptedCredentials != null){
-                               String userCredentials = getEncryptedPropValue(encryptedCredentials, CommonConstants.DEFAULT_BPEL_AUTH, CommonConstants.ENCRYPTION_KEY);
+                               String userCredentials = getEncryptedPropValue(encryptedCredentials, CommonConstants.DEFAULT_BPEL_AUTH, props.getProperty(CommonConstants.ENCRYPTION_KEY_PROP));
                                if(userCredentials != null){
                                        get.addHeader("Authorization", "Basic " + new String(DatatypeConverter
                                                .printBase64Binary(userCredentials.getBytes())));