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.loxone.internal.types;
16 * Types of security authentication/encryption methods.
18 * @author Pawel Pieczul - initial contribution
21 public enum LxWsSecurityType {
23 * Method will be determined base on Miniserver software version
27 * Hash-based authentication with no command encryption
31 * Token-based authentication with AES-256 command encryption
36 * Encode security type based on index
39 * 0 for auto, 1 for hash, 2 for token
41 * security type fo given index
43 public static LxWsSecurityType getType(int index) {