|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.linux.net.wifi.WpaSupplicant
public class WpaSupplicant
Defines WiFi wpa_supplicant tool
Method Summary | |
---|---|
void |
disable()
Stops wpa_supplicant |
void |
enable()
Launches wpa_supplicant |
boolean |
equals(Object obj)
|
WifiBgscan |
getBgscan()
|
int[] |
getChannels()
|
static String |
getConfigFilename()
Reports wpa_supplicant configuration file |
String |
getDriver()
|
WifiCiphers |
getGroupCiphers()
|
String |
getInterface()
|
WifiMode |
getMode()
|
WifiCiphers |
getPairwiseCiphers()
|
String |
getPassword()
|
String |
getSSID()
|
WifiSecurity |
getWifiSecurity()
|
static WpaSupplicant |
getWpaSupplicant(String ifaceName)
|
static WpaSupplicant |
getWpaSupplicant(String iface,
WifiMode mode,
String driver,
String essid,
WifiSecurity security,
WifiCiphers pairwiseCiphers,
WifiCiphers groupCiphers,
int[] scanChannels,
String passwd,
WifiBgscan bgscan)
Instantiates WpaSupplicant object |
static boolean |
hasInstanceRunning()
Reports if there is an instance of wpa_supplicant running |
boolean |
isEnabled()
Reports if wpa_supplicant is running |
static void |
killAll()
Stops all instances of wpa_supplicant |
void |
saveConfig()
|
void |
setBgscan(WifiBgscan bgscan)
|
void |
setChannels(int[] channels)
|
void |
setDriver(String driver)
|
void |
setGroupCiphers(WifiCiphers ciphers)
|
void |
setInterface(String iface)
|
void |
setMode(WifiMode mode)
|
void |
setPairwiseCiphers(WifiCiphers ciphers)
|
void |
setPassword(String password)
|
void |
setSSID(String ssid)
|
void |
setWifiSecurity(WifiSecurity security)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WpaSupplicant getWpaSupplicant(String iface, WifiMode mode, String driver, String essid, WifiSecurity security, WifiCiphers pairwiseCiphers, WifiCiphers groupCiphers, int[] scanChannels, String passwd, WifiBgscan bgscan)
iface
- - interface name as String
mode
- - wifi mode (master, managed, ad-hoc) as WifiMode
driver
- - driver name as String
essid
- - service set ID (ESSID) as String
securityType
- - security type as WifiSecurity
pairwiseCiphers
- - allowed pairwise ciphers as WifiCiphers
groupCiphers
- - allowed group ciphers as WifiCiphers
scanChannels-
- scan channels as int[]
passwd
- - password as String
bgscan
- - background scan as WifiBgscan
public static WpaSupplicant getWpaSupplicant(String ifaceName) throws EsfException
EsfException
public void enable() throws EsfException
Exception
EsfException
public void disable() throws EsfException
Exception
EsfException
public static void killAll() throws EsfException
Exception
EsfException
public static String getConfigFilename()
String
public boolean isEnabled() throws EsfException
boolean
EsfException
public static boolean hasInstanceRunning() throws EsfException
boolean
EsfException
public boolean equals(Object obj)
equals
in class Object
public String getInterface()
public void setInterface(String iface)
public String getDriver()
public void setDriver(String driver)
public WifiMode getMode()
public void setMode(WifiMode mode)
public String getSSID()
public void setSSID(String ssid)
public String getPassword()
public void setPassword(String password)
public WifiSecurity getWifiSecurity()
public void setWifiSecurity(WifiSecurity security)
public WifiCiphers getPairwiseCiphers()
public void setPairwiseCiphers(WifiCiphers ciphers)
public WifiCiphers getGroupCiphers()
public void setGroupCiphers(WifiCiphers ciphers)
public int[] getChannels()
public void setChannels(int[] channels)
public WifiBgscan getBgscan()
public void setBgscan(WifiBgscan bgscan)
public void saveConfig() throws EsfException
EsfException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |