summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org/openecomp
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2022-09-06 13:08:14 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2022-09-06 12:08:56 +0000
commitc7d44853b881daadccc6c05cddcbb89743f1bffc (patch)
treeb5690f480a9a303b300968192cd5b2a40a1cd898 /common-app-api/src/main/java/org/openecomp
parent3f48762a391733561bb1ed171ea0a15bf0ea50ee (diff)
Update SDC with new 'security-util-lib' version
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Iece4430f2ebceb8bfb1ea1a89c541335e2f35b11 Issue-ID: SDC-4165
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/http/config/BasicAuthorization.java2
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/http/config/ClientCertificate.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/BasicAuthorization.java b/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/BasicAuthorization.java
index c9147719a4..4e0af9c18c 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/BasicAuthorization.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/BasicAuthorization.java
@@ -56,7 +56,7 @@ public class BasicAuthorization {
private void setPassword(String password, boolean isEncoded) {
validate(password);
if (isEncoded) {
- Either<String, String> passkey = SecurityUtil.INSTANCE.decrypt(password);
+ Either<String, String> passkey = SecurityUtil.decrypt(password);
if (passkey.isLeft()) {
this.password = passkey.left().value();
} else {
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/ClientCertificate.java b/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/ClientCertificate.java
index 510c0a277c..93fc3b9f0f 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/ClientCertificate.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/http/config/ClientCertificate.java
@@ -41,7 +41,7 @@ public class ClientCertificate {
private void setKeyStorePassword(String keyStorePassword, boolean isEncoded) {
validate(keyStorePassword);
if (isEncoded) {
- Either<String, String> passkey = SecurityUtil.INSTANCE.decrypt(keyStorePassword);
+ Either<String, String> passkey = SecurityUtil.decrypt(keyStorePassword);
if (passkey.isLeft()) {
this.keyStorePassword = passkey.left().value();
} else {