2 * ***************************************************************
4 * Copyright 2015 Samsung Electronics All Rights Reserved.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
20 * ****************************************************************
23 package org.iotivity.service.easysetup.core;
26 * It defines various states of the Enrollee device during easy setup process
29 public enum EnrolleeState {
32 * Default state of the device
37 * Device will move to this state after successful on-boarding of the device
39 DEVICE_ON_BOARDING_STATE,
42 * Device will move to this state once the on boarding is done
44 DEVICE_PROVISIONING_STATE,
47 * Easy setup process is successful.
49 DEVICE_PROVISIONING_SUCCESS_STATE,
52 * Device is not able to provisioned.
53 * Easy setup process failed to enrolled the device in the network
55 DEVICE_PROVISIONING_FAILED_STATE,
58 * This state is arbitrary one, any time device can come into this state
59 * Device will move to this state if the ownership transfer initiated by the Application
61 DEVICE_OWNERSHIP_TRANSFER_STATE,
64 * This state is arbitrary one, any time device can come into this state
65 * Device will move to this state once the Application factory reset the device
67 DEVICE_FACTORY_RESET_STATE,