2 * Copyright (c) 2010-2020 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 @Nullable String host;
30 private @Nullable String encryptionKey;
33 * @return IP or hostname of the bridge
35 public String getHost() {
36 final String host = this.host;
37 return host == null ? "" : host;
41 * @return IP port the bridge listens to
43 public int getPort() {
48 * @return key used to encrypt messages
50 public String getEncryptionKey() {
51 final String encryptionKey = this.encryptionKey;
52 return encryptionKey == null ? "" : encryptionKey;