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;
25 import android.util.Log;
27 import org.iotivity.base.OcConnectivityType;
29 * It contains configuration details about the the target network where Enrollee device is
30 * going to be enrolled.
32 public interface ProvisioningConfig {
35 * It provides constants for connectivity types of target network
37 public static enum ConnType {
38 // Note : Enum Ids should matched with Native Ids
39 WiFi(OcConnectivityType.CT_ADAPTER_IP.getValue()),
40 BLE(OcConnectivityType.CT_ADAPTER_GATT_BTLE.getValue());
42 private int mConnType;
44 ConnType(int connType) {
48 public int getValue() {
54 * Gives the instance of the configuration object created according to the connectivity
55 * type of target network.
57 * @return instance object of configuration according to connectivity type of target network
63 * Gives connectivity type of target network
65 * @return Connectivity type of target network
67 ConnType getConnType();
69 public boolean isSecured();
71 public void setSecured(boolean isSecured);