2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.server.configuration;
23 import java.util.List;
25 public class CookieConfig {
27 String securityKey = "";
28 long maxSessionTimeOut = 600L*1000L;
29 long sessionIdleTimeOut = 30L*1000L;
30 String cookieName = "AuthenticationCookie";
31 String redirectURL = "portal_url";
32 List<String> excludedUrls;
33 List<String> onboardingExcludedUrls;
36 boolean isHttpOnly = true;
38 public String getSecurityKey() {
42 public void setSecurityKey(String securityKey) {
43 this.securityKey = securityKey;
46 public long getMaxSessionTimeOut() {
47 return maxSessionTimeOut;
50 public void setMaxSessionTimeOut(long maxSessionTimeOut) {
51 this.maxSessionTimeOut = maxSessionTimeOut;
54 public long getSessionIdleTimeOut() {
55 return sessionIdleTimeOut;
58 public void setSessionIdleTimeOut(long sessionIdleTimeOut) {
59 this.sessionIdleTimeOut = sessionIdleTimeOut;
62 public String getCookieName() {
66 public void setCookieName(String cookieName) {
67 this.cookieName = cookieName;
70 public String getRedirectURL() {
74 public void setRedirectURL(String redirectURL) {
75 this.redirectURL = redirectURL;
78 public List<String> getExcludedUrls() {
82 public void setExcludedUrls(List<String> excludedUrls) {
83 this.excludedUrls = excludedUrls;
86 public String getDomain() {
90 public void setDomain(String domain) {
94 public String getPath() {
98 public void setPath(String path) {
102 public boolean isHttpOnly() {
106 public void setIsHttpOnly(boolean isHttpOnly) {
107 this.isHttpOnly = isHttpOnly;
110 public List<String> getOnboardingExcludedUrls() {
111 return onboardingExcludedUrls;
114 public void setOnboardingExcludedUrls(List<String> onboardingExcludedUrls) {
115 this.onboardingExcludedUrls = onboardingExcludedUrls;