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.robonect.internal;
15 import org.eclipse.jetty.util.StringUtil;
18 * The {@link RobonectEndpoint} is holds the information required to a Robonect endpoint.
20 * @author Marco Meyer - Initial contribution
22 public class RobonectEndpoint {
24 private final String ipAddress;
26 private final String user;
28 private final String password;
30 private boolean useAuthentication = false;
32 public RobonectEndpoint(String ipAddress, String user, String password) {
33 this.ipAddress = ipAddress;
35 this.password = password;
36 this.useAuthentication = StringUtil.isNotBlank(user) && StringUtil.isNotBlank(password);
39 public String getIpAddress() {
43 public String getUser() {
47 public String getPassword() {
51 public boolean isUseAuthentication() {
52 return useAuthentication;