summaryrefslogtreecommitdiffstats
path: root/auth/auth-gui/src/main/java/org
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-09-19 15:37:43 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-19 15:37:43 +0000
commit32e9ace87dd4fc9dfd10edb25919e99363c1cabd (patch)
tree53f064a55c7bf104d3183f4a5448c1c65cbd4ec5 /auth/auth-gui/src/main/java/org
parent1df74b36c81fb4a20927a59a2766d4752df947e8 (diff)
parentb08305d72d34f3e71b087920718dc0decdcee303 (diff)
Merge "Sonar fix: CUI.java"
Diffstat (limited to 'auth/auth-gui/src/main/java/org')
-rw-r--r--auth/auth-gui/src/main/java/org/onap/aaf/auth/cui/CUI.java3
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);