]> git.basschouten.com Git - openhab-addons.git/blob
6f727306566e6987addc28fdc84a5f9b361a638e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.tesla.internal.protocol.sso;
14
15 import static org.openhab.binding.tesla.internal.TeslaBindingConstants.*;
16
17 /**
18  * The {@link RefreshTokenRequest} is a datastructure to refresh
19  * the access token for the SSO endpoint
20  *
21  * @author Christian Güdel - Initial contribution
22  */
23 public class RefreshTokenRequest {
24     public String grant_type = "refresh_token";
25     public String client_id = CLIENT_ID;
26     public String refresh_token;
27     public String scope = SSO_SCOPES;
28
29     public RefreshTokenRequest(String refresh_token) {
30         this.refresh_token = refresh_token;
31     }
32 }