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.linky.internal.dto;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
21 * The {@link AuthData} holds authentication information
23 * @author Gaƫl L'hopital - Initial contribution
26 public class AuthData {
27 public class AuthDataCallBack {
28 public class NameValuePair {
29 public @Nullable String name;
30 public @Nullable Object value;
32 public @Nullable String valueAsString() {
33 return (value instanceof String) ? (String) value : null;
37 public @Nullable String type;
39 public List<NameValuePair> output = List.of();
40 public List<NameValuePair> input = List.of();
43 public @Nullable String authId;
44 public @Nullable String template;
45 public @Nullable String stage;
46 public @Nullable String header;
47 public List<AuthDataCallBack> callbacks = List.of();