2 * ============LICENSE_START=======================================================
3 * ONAP : ccsdk features
4 * ================================================================================
5 * Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 package org.onap.ccsdk.features.sdnr.wt.oauthprovider.data;
24 public class OAuthResponseData {
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;
33 public OAuthResponseData() {
36 public OAuthResponseData(String token) {
37 this.access_token = token;
40 public String getAccess_token() {
44 public String getToken_type() {
48 public void setToken_type(String token_type) {
49 this.token_type = token_type;
52 public String getRefresh_token() {
56 public void setRefresh_token(String refresh_token) {
57 this.refresh_token = refresh_token;
60 public double getRefresh_expires_in() {
61 return refresh_expires_in;
64 public void setRefresh_expires_in(double refresh_expires_in) {
65 this.refresh_expires_in = refresh_expires_in;
68 public double getExpires_in() {
72 public void setExpires_in(double expires_in) {
73 this.expires_in = expires_in;
76 public void setAccess_token(String access_token) {
77 this.access_token = access_token;
80 public void setId_token(String id_token){ this.id_token = id_token;}
81 public String getId_token(){ return this.id_token;}
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="