diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-08-13 18:21:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-13 18:21:35 +0000 |
commit | ac6160ed5e61dafc2435bbf58e2e2de5d4726487 (patch) | |
tree | 666cfb3c41b043af25958c0534d6828af50b01ed /ecomp-portal-BE-os/src | |
parent | 2408ee6afb0d0803cbb487b8604271c7daa30e6a (diff) | |
parent | 6f8f97e9d53f6fefaa7e1523fe241617df1f48b4 (diff) |
Merge "Fix sonar issues in portal"
Diffstat (limited to 'ecomp-portal-BE-os/src')
-rw-r--r-- | ecomp-portal-BE-os/src/main/java/org/onap/portalapp/util/SessionCookieUtil.java | 2 |
1 files changed, 2 insertions, 0 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 6ac63257..eaf9ec19 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 @@ -69,6 +69,7 @@ public class SessionCookieUtil { HttpServletResponse response) { String jSessionId = getJessionId(request); Cookie cookie1 = new Cookie(EP_SERVICE, jSessionId); + cookie1.setSecure(true); cookie1.setMaxAge(cookieMaxAge); cookie1.setDomain(EPCommonSystemProperties.getProperty(EPCommonSystemProperties.COOKIE_DOMAIN)); cookie1.setPath("/"); @@ -81,6 +82,7 @@ public class SessionCookieUtil { userId = CipherUtil.encrypt(userId, SystemProperties.getProperty(SystemProperties.Decryption_Key)); Cookie cookie1 = new Cookie(USER_ID, userId); + cookie1.setSecure(true); cookie1.setMaxAge(cookieMaxAge); cookie1.setDomain(EPCommonSystemProperties.getProperty(EPCommonSystemProperties.COOKIE_DOMAIN)); cookie1.setPath("/"); |