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.mediator;
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_BOARDED_STATE,
42 * Device will move to this state once the on boarding begins
44 DEVICE_ON_BOARDING_STATE,
47 * Device will move to this state once the on boarding is done
49 DEVICE_PROVISIONING_STATE,
52 * Easy setup process is successful.
54 DEVICE_PROVISIONED_STATE,
57 * This state is arbitrary one, any time device can come into this state
58 * Device will move to this state if the ownership transfer initiated by the Application
60 DEVICE_OWNERSHIP_TRANSFERRING_STATE,
63 * This state is arbitrary one, any time device can come into this state
64 * Device will move to this state if the ownership transfer is completed
66 DEVICE_OWNERSHIP_TRANSFERRED_STATE,
70 * This state is arbitrary one, any time device can come into this state
71 * Device will move to this state once the Application factory reset the device
73 DEVICE_FACTORY_RESET_STATE,