4c1521775d94942f796b2477b1027af5a9870f89
[platform/upstream/iotivity.git] / service / easy-setup / sdk / mediator / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / mediator / ProvisioningConfig.java
1 /**
2  * ***************************************************************
3  * <p>
4  * Copyright 2015 Samsung Electronics All Rights Reserved.
5  * <p>
6  * <p>
7  * <p>
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
11  * <p>
12  * http://www.apache.org/licenses/LICENSE-2.0
13  * <p>
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.
19  * <p>
20  * ****************************************************************
21  */
22
23 package org.iotivity.service.easysetup.mediator;
24 /**
25  * It contains configuration details about the the target network where Enrollee device is
26  * going to be enrolled.
27  */
28 public interface ProvisioningConfig {
29
30     /**
31      * It provides constants for connectivity types of target network
32      */
33     public static enum ConnType {
34         WiFi,
35         BT
36     }
37
38     /**
39      * Gives the instance of the configuration object created according to the connectivity
40      * type of target network.
41      *
42      * @return instance object of configuration according to connectivity type of target network
43      */
44     Object getConfig();
45
46
47     /**
48      * Gives connectivity type of target network
49      *
50      * @return Connectivity type of target network
51      */
52     ConnType getConnType();
53
54 }