0e25b5b0f48c13db2fb16899c2aaad1f112eae35
[ccsdk/features.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * ONAP : ccsdk features
4  * ================================================================================
5  * Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
6  * All rights reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  *
21  */
22 package org.onap.ccsdk.features.sdnr.wt.oauthprovider.data;
23
24 public class OAuthResponseData {
25
26     private String access_token;
27     private double expires_in;
28     private double refresh_expires_in;
29     private String refresh_token;
30     private String token_type;
31     private String id_token;
32
33     public OAuthResponseData() {
34     }
35
36     public OAuthResponseData(String token) {
37         this.access_token = token;
38     }
39
40     public String getAccess_token() {
41         return access_token;
42     }
43
44     public String getToken_type() {
45         return token_type;
46     }
47
48     public void setToken_type(String token_type) {
49         this.token_type = token_type;
50     }
51
52     public String getRefresh_token() {
53         return refresh_token;
54     }
55
56     public void setRefresh_token(String refresh_token) {
57         this.refresh_token = refresh_token;
58     }
59
60     public double getRefresh_expires_in() {
61         return refresh_expires_in;
62     }
63
64     public void setRefresh_expires_in(double refresh_expires_in) {
65         this.refresh_expires_in = refresh_expires_in;
66     }
67
68     public double getExpires_in() {
69         return expires_in;
70     }
71
72     public void setExpires_in(double expires_in) {
73         this.expires_in = expires_in;
74     }
75
76     public void setAccess_token(String access_token) {
77         this.access_token = access_token;
78     }
79
80     public void setId_token(String id_token){ this.id_token = id_token;}
81     public String getId_token(){ return this.id_token;}
82     @Override
83     public String toString() {
84         return "OAuthResponseData [access_token=" + access_token + ", expires_in=" + expires_in
85                 + ", refresh_expires_in=" + refresh_expires_in + ", refresh_token=" + refresh_token + ", token_type="
86                 + token_type + "]";
87     }
88 }