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 org.iotivity.service.easysetup.mediator.ProvisioningConfig;
28 * This class contains on provisioning configuration information for for target network.
29 * It implements ProvisioningConfig interface and provide configuration object specific to WiFi target network
31 public class WiFiProvConfig implements ProvisioningConfig {
33 private final ConnType mConnType = ProvisioningConfig.ConnType.WiFi;
34 private boolean isSecured;
36 private final String mSsId;
37 private final String mPassword;
39 public WiFiProvConfig(String ssid, String pass) {
45 public Object getConfig() {
50 public ConnType getConnType() {
55 * This method returns the SSID of the Target WIFI network
56 * @return SSID of Target Network
58 public String getSsId() {
63 * This method returns the password of the Target WIFI network
64 * @return password of Target Network
66 public String getPassword() {
71 public boolean isSecured(){
76 public void setSecured(boolean flag) {