Added README.txt and GPL Header to Source Files
[DHBWCampusApp.git] / app / src / main / java / de / dhbwloe / campusapp / wifi / WifiNetworkSettings.java
index 3c1ba68509ac0d02e73314829168621042ece73e..8c312a470eb96235eda1ba7b0af7aeb9969aeef2 100644 (file)
@@ -1,3 +1,18 @@
+/* WifiNetworkSettings.java
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
 package de.dhbwloe.campusapp.wifi;
 
 import android.net.wifi.WifiConfiguration;
@@ -83,6 +98,7 @@ public class WifiNetworkSettings {
                 "uD3s1d70097Es++KwAg=\n" +
                 "-----END CERTIFICATE-----\n"));
 
+        /*
         presets.add((new WifiNetworkSettings("dhbw-802.1x", "dhbw-802.1x", WifiNetworkAuthenticationTypes.WIFI_AUTHTYPE_WPA_ENTERPRISE)).
                 setWpaEnterprise(
                         new int[]{WifiConfiguration.KeyMgmt.WPA_EAP, WifiConfiguration.KeyMgmt.IEEE8021X},
@@ -111,6 +127,7 @@ public class WifiNetworkSettings {
                 "xbrYNuSD7Odlt79jWvNGr4GUN9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU\n" +
                 "Cm26OWMohpLzGITY+9HPBVZkVw==\n" +
                 "-----END CERTIFICATE-----"));
+        */
 
         presets.add((new WifiNetworkSettings("eduroam", "eduroam", WifiNetworkAuthenticationTypes.WIFI_AUTHTYPE_WPA_ENTERPRISE)).
                 setWpaEnterprise(
@@ -171,12 +188,6 @@ public class WifiNetworkSettings {
 
     public TabLayout.Tab tab;
     public boolean isInScanResult = false;
-    public boolean isTryConnecting = false;
-    public boolean isAssociating = false;
-    public boolean isAssociated = false;
-    public boolean isAuthenticated = false;
-    public boolean isDisconnected = false;
-    public boolean failedAuthentication = false;
 
     public WifiNetworkSettings(String name, String ssid, WifiNetworkAuthenticationTypes authType) {
         this.name = name;
@@ -261,4 +272,8 @@ public class WifiNetworkSettings {
         return caName;
     }
 
+    public SecureLoginManager getSecureLoginManager() {
+        return performDHSecureLogin;
+    }
+
 }