Fix/Renable sidecar builds
[aaf/cadi.git] / sidecar / fproxy / src / main / java / org / onap / aaf / cadi / sidecar / fproxy / data / CredentialCacheData.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aaf
4  * ================================================================================
5  * Copyright © 2018 European Software Marketing Ltd.
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 package org.onap.aaf.cadi.sidecar.fproxy.data;
21
22 public class CredentialCacheData {
23
24     public enum CredentialType {
25         HEADER, COOKIE;
26     }
27
28     private String credentialName;
29     private String credentialValue;
30     private CredentialType credentialType;
31
32     public CredentialCacheData() {
33         super();
34     }
35
36     public CredentialCacheData(String credentialName, String credentialValue, CredentialType credentialType) {
37         super();
38         this.credentialName = credentialName;
39         this.credentialValue = credentialValue;
40         this.credentialType = credentialType;
41     }
42
43     public String getCredentialName() {
44         return credentialName;
45     }
46
47     public void setCredentialName(String credentialName) {
48         this.credentialName = credentialName;
49     }
50
51     public String getCredentialValue() {
52         return credentialValue;
53     }
54
55     public void setCredentialValue(String credentialValue) {
56         this.credentialValue = credentialValue;
57     }
58
59     public Enum<CredentialType> getCredentialType() {
60         return credentialType;
61     }
62
63     public void setCredentialType(CredentialType credentialType) {
64         this.credentialType = credentialType;
65     }
66
67     @Override
68     public String toString() {
69         return "CredentialCacheData [credentialName=" + credentialName + ", credentialType=" + credentialType + "]";
70     }
71
72 }