summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorst782s <statta@research.att.com>2018-04-11 15:36:07 -0400
committerst782s <statta@research.att.com>2018-04-11 15:36:07 -0400
commiteb135ec4f996bcfff4eb4130a7d461830fb9e511 (patch)
tree16475fa740c07b7d5766656f81b35c6d57012256
parent7c63110b31650d97e658ce42c9dbb8810316fdc2 (diff)
Change decryption algorithm
Issue-ID: PORTAL-252 Change-Id: I93d7f6bc54ab626e1830d67ac73ff9ec612de82f Signed-off-by: st782s <statta@research.att.com>
-rw-r--r--ecomp-portal-BE-os/src/main/java/org/onap/portalapp/util/SessionCookieUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/util/SessionCookieUtil.java b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/util/SessionCookieUtil.java
index edb5ebb6..7d4916d2 100644
--- a/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/util/SessionCookieUtil.java
+++ b/ecomp-portal-BE-os/src/main/java/org/onap/portalapp/util/SessionCookieUtil.java
@@ -78,7 +78,7 @@ public class SessionCookieUtil {
public static void setUpUserIdCookie(HttpServletRequest request,
HttpServletResponse response,String userId) throws Exception {
logger.info("************** session cookie util set up UserId cookie begins");
- userId = CipherUtil.encryptPKC(userId,
+ userId = CipherUtil.encrypt(userId,
SystemProperties.getProperty(SystemProperties.Decryption_Key));
Cookie cookie1 = new Cookie(USER_ID, userId);
cookie1.setMaxAge(cookieMaxAge);
@@ -98,7 +98,7 @@ public class SessionCookieUtil {
if (cookie.getName().equals(USER_ID))
userIdcookie = cookie;
if(userIdcookie!=null){
- userId = CipherUtil.decryptPKC(userIdcookie.getValue(),
+ userId = CipherUtil.decrypt(userIdcookie.getValue(),
SystemProperties.getProperty(SystemProperties.Decryption_Key));
}