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.satel.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link Ethm1Config} contains configuration values for Satel ETHM-1 bridge.
21 * @author Krzysztof Goworek - Initial contribution
24 public class Ethm1Config extends SatelBridgeConfig {
26 public static final String HOST = "host";
28 private String host = "";
30 private @Nullable String encryptionKey;
33 * @return IP or hostname of the bridge
35 public String getHost() {
40 * @return IP port the bridge listens to
42 public int getPort() {
47 * @return key used to encrypt messages
49 public String getEncryptionKey() {
50 final String encryptionKey = this.encryptionKey;
51 return encryptionKey == null ? "" : encryptionKey;