2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.nest.internal.wwn.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The configuration for the WWN account, allowing it to talk to Nest.
21 * @author David Bennett - Initial contribution
24 public class WWNAccountConfiguration {
25 public static final String PRODUCT_ID = "productId";
26 /** Product ID from the Nest product page. */
27 public String productId = "";
29 public static final String PRODUCT_SECRET = "productSecret";
30 /** Product secret from the Nest product page. */
31 public String productSecret = "";
33 public static final String PINCODE = "pincode";
34 /** Product pincode from the Nest authorization page. */
35 public @Nullable String pincode;
37 public static final String ACCESS_TOKEN = "accessToken";
38 /** The access token to use once retrieved from Nest. */
39 public @Nullable String accessToken;