806a620620317be44082a61e819c3770f4c64978
[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
32     public OAuthResponseData() {
33     }
34
35     public OAuthResponseData(String token) {
36         this.access_token = token;
37     }
38
39     public String getAccess_token() {
40         return access_token;
41     }
42
43     public String getToken_type() {
44         return token_type;
45     }
46
47     public void setToken_type(String token_type) {
48         this.token_type = token_type;
49     }
50
51     public String getRefresh_token() {
52         return refresh_token;
53     }
54
55     public void setRefresh_token(String refresh_token) {
56         this.refresh_token = refresh_token;
57     }
58
59     public double getRefresh_expires_in() {
60         return refresh_expires_in;
61     }
62
63     public void setRefresh_expires_in(double refresh_expires_in) {
64         this.refresh_expires_in = refresh_expires_in;
65     }
66
67     public double getExpires_in() {
68         return expires_in;
69     }
70
71     public void setExpires_in(double expires_in) {
72         this.expires_in = expires_in;
73     }
74
75     public void setAccess_token(String access_token) {
76         this.access_token = access_token;
77     }
78
79     @Override
80     public String toString() {
81         return "OAuthResponseData [access_token=" + access_token + ", expires_in=" + expires_in
82                 + ", refresh_expires_in=" + refresh_expires_in + ", refresh_token=" + refresh_token + ", token_type="
83                 + token_type + "]";
84     }
85 }