]> git.basschouten.com Git - openhab-addons.git/blob
a45dfccd1515f62b7aed25e5d52b60ecb01d255e
[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 TokenRequestPassword} is a datastructure to capture
19  * authentication/credentials required to log into the
20  * Tesla Remote Service
21  *
22  * @author Karel Goderis - Initial contribution
23  * @author Nicolai Grødum - Adding token based auth
24  */
25 @SuppressWarnings("unused")
26 public class TokenRequestPassword extends TokenRequest {
27
28     private String grant_type = "password";
29     private String email;
30     private String password;
31
32     public TokenRequestPassword(String email, String password) throws GeneralSecurityException {
33         super();
34
35         this.email = email;
36         this.password = password;
37     }
38 }