]> git.basschouten.com Git - openhab-addons.git/blob
72ccbeb79cecc4545457a00b7bd48d0d9935de43
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.icloud.internal.handler;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Enum to mark state during iCloud authentication.
19  *
20  * @author Simon Spielmann - Initial contribution
21  *
22  */
23 @NonNullByDefault
24 public enum AuthState {
25
26     /**
27      * Authentication was not tried yet.
28      */
29     INITIAL,
30
31     /**
32      * Entered credentials (apple id / password) are invalid.
33      */
34     USER_PW_INVALID,
35
36     /**
37      * Waiting for user to provide 2-FA code in thing configuration.
38      */
39     WAIT_FOR_CODE,
40
41     /**
42      * Sucessfully authenticated.
43      */
44     AUTHENTICATED
45
46 }