Added oparent to sdc main
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / onboarding-rest-war / src / main / java / org / openecomp / server / configuration / CookieConfig.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.server.configuration;
22
23 import java.util.List;
24
25 public class CookieConfig {
26
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;
34     String domain = "";
35     String path = "";
36     boolean isHttpOnly = true;
37
38     public String getSecurityKey() {
39         return securityKey;
40     }
41
42     public void setSecurityKey(String securityKey) {
43         this.securityKey = securityKey;
44     }
45
46     public long getMaxSessionTimeOut() {
47         return maxSessionTimeOut;
48     }
49
50     public void setMaxSessionTimeOut(long maxSessionTimeOut) {
51         this.maxSessionTimeOut = maxSessionTimeOut;
52     }
53
54     public long getSessionIdleTimeOut() {
55         return sessionIdleTimeOut;
56     }
57
58     public void setSessionIdleTimeOut(long sessionIdleTimeOut) {
59         this.sessionIdleTimeOut = sessionIdleTimeOut;
60     }
61
62     public String getCookieName() {
63         return cookieName;
64     }
65
66     public void setCookieName(String cookieName) {
67         this.cookieName = cookieName;
68     }
69
70     public String getRedirectURL() {
71         return redirectURL;
72     }
73
74     public void setRedirectURL(String redirectURL) {
75         this.redirectURL = redirectURL;
76     }
77
78     public List<String> getExcludedUrls() {
79         return excludedUrls;
80     }
81
82     public void setExcludedUrls(List<String> excludedUrls) {
83         this.excludedUrls = excludedUrls;
84     }
85
86     public String getDomain() {
87         return domain;
88     }
89
90     public void setDomain(String domain) {
91         this.domain = domain;
92     }
93
94     public String getPath() {
95         return path;
96     }
97
98     public void setPath(String path) {
99         this.path = path;
100     }
101
102     public boolean isHttpOnly() {
103         return isHttpOnly;
104     }
105
106     public void setIsHttpOnly(boolean isHttpOnly) {
107         this.isHttpOnly = isHttpOnly;
108     }
109
110     public List<String> getOnboardingExcludedUrls() {
111         return onboardingExcludedUrls;
112     }
113
114     public void setOnboardingExcludedUrls(List<String> onboardingExcludedUrls) {
115         this.onboardingExcludedUrls = onboardingExcludedUrls;
116     }
117 }