Change decryption algorithm 97/42497/1
authorst782s <statta@research.att.com>
Wed, 11 Apr 2018 18:58:12 +0000 (14:58 -0400)
committerSunder Tattavarada <statta@research.att.com>
Thu, 12 Apr 2018 13:14:15 +0000 (13:14 +0000)
Issue-ID: PORTAL-252
Change-Id: I6d6c3aa976c5548ab3c37b2e14dfe004e222a456
Signed-off-by: st782s <statta@research.att.com>
(cherry picked from commit 3fa57a0595442f9d17d85ad50222770db397c834)

ecomp-sdk/epsdk-app-os/src/main/java/org/onap/portalapp/login/LoginStrategyImpl.java

index b0826f6..729cfd1 100644 (file)
@@ -103,7 +103,7 @@ public class LoginStrategyImpl extends LoginStrategy {
                        if (!SystemProperties.containsProperty(SystemProperties.Decryption_Key))
                                throw new IllegalStateException("Failed to find property " + SystemProperties.Decryption_Key);
                        final String decryptionKey = SystemProperties.getProperty(SystemProperties.Decryption_Key);
-                       userId = CipherUtil.decryptPKC(cookieValue, decryptionKey);
+                       userId = CipherUtil.decrypt(cookieValue, decryptionKey);
                        logger.debug(EELFLoggerDelegate.debugLogger, "getUserIdFromCookie: decrypted as {}", userId);
                }
                return userId;