diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-18 15:12:27 +0530 |
---|---|---|
committer | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-18 15:12:32 +0530 |
commit | b08305d72d34f3e71b087920718dc0decdcee303 (patch) | |
tree | 911243309239dc9c74dea67090ba998c14e49cf9 /auth/auth-gui/src/main/java | |
parent | b907ab4b6d721c875b042a89c7c8c071ba0dd4a9 (diff) |
Sonar fix: CUI.java
Fixed sonar issues across this file
Issue-ID: AAF-968
Change-Id: I2c1e40099f686c9a9275e075cc4c6af7d5e0e1f2
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'auth/auth-gui/src/main/java')
-rw-r--r-- | auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java b/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java index cb44ab09..20a28cab 100644 --- a/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java +++ b/auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java @@ -45,7 +45,7 @@ import org.onap.aaf.misc.env.TimeTaken; public class CUI extends HttpCode<AuthzTrans, Void> { private final AAF_GUI gui; - private final static Pattern userPerm = Pattern.compile("perm (create|delete).*@.*:id.*aaf.gui.*"); + private static final Pattern userPerm = Pattern.compile("perm (create|delete).*@.*:id.*aaf.gui.*"); public CUI(AAF_GUI gui) { @@ -90,6 +90,7 @@ public class CUI extends HttpCode<AuthzTrans, Void> { if(userPerm.matcher(cmdStr).matches()) { trans.clearCache(); Cookie cookie = new Cookie(Page.AAF_THEME,trans.getProperty(Page.AAF_THEME)); + cookie.setSecure(true); cookie.setMaxAge(-1); cookie.setComment("Remove AAF GUI Theme"); trans.hresp().addCookie(cookie); |