]> git.basschouten.com Git - openhab-addons.git/blob
b8fc693c5f4aa3bc6734a7e02e4d964e38fe1c71
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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;
14
15 import java.security.GeneralSecurityException;
16
17 /**
18  * The {@link TokenRequestRefreshToken} is a datastructure to capture
19  * authentication/credentials required to log into the
20  * Tesla Remote Service
21  *
22  * @author Nicolai Grødum - Adding token based auth
23  */
24 public class TokenRequestRefreshToken extends TokenRequest {
25
26     private String grant_type = "refresh_token";
27     private String refresh_token;
28
29     public TokenRequestRefreshToken(String refresh_token) throws GeneralSecurityException {
30         super();
31         this.refresh_token = refresh_token;
32     }
33 }