Back to project page WIFI_Recovery.
The source code is released under:
GNU General Public License
If you think the Android project WIFI_Recovery listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.vorsk.wifirecovery.network; //w ww. j av a 2 s . co m import com.vorsk.wifirecovery.R; public class WPANetwork extends Network{ public static final String key_mgmt = "WPA-PSK"; private String key; public WPANetwork(String ssid, String key){ super(ssid); setSecurity(Network.WPA); setWPA_Key(key); } //mutators public String getWPA_Key() { return key; } public void setWPA_Key(String key) { if ((key.length() >= 8) && (key.length() <= 63)){ this.key = key; } } @Override protected String getSecurityDetails() { String key = "KEY: "+ this.getWPA_Key(); return key; } public int getIcon(){ return R.drawable.network_wpa; } }