Modify permissions for files in Things Manager
[platform/upstream/iotivity.git] / service / easy-setup / sdk / mediator / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / impl / WiFiProvConfig.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.impl;
24
25 import org.iotivity.service.easysetup.core.ProvisioningConfig;
26 import org.iotivity.service.easysetup.mediator.EnrolleeInfo;
27
28 import android.net.wifi.WifiConfiguration;
29
30 /**
31  * This class contains on provisioning configuration information for for target network.
32  * It implements ProvisioningConfig interface and provide configuration object specific to WiFi target network
33  */
34 public class WiFiProvConfig implements ProvisioningConfig {
35
36     private final ConnType mConnType = ProvisioningConfig.ConnType.WiFi;
37
38     private final String mSsId;
39     private final String mPassword;
40
41     public WiFiProvConfig(String ssid, String pass) {
42         mSsId = ssid;
43         mPassword = pass;
44     }
45
46     @Override
47     public Object getConfig() {
48         return this;
49     }
50
51     @Override
52     public ConnType getConnType() {
53         return mConnType;
54     }
55
56     public String getSsId() {
57         return mSsId;
58     }
59
60     public String getPassword() {
61         return mPassword;
62     }
63
64 }