|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.net.wifi.WifiConfiguration
public class WifiConfiguration
A class representing a configured Wi-Fi network, including the security configuration. Android will not necessarily support all of these security schemes initially.
| Nested Class Summary | |
|---|---|
static class |
WifiConfiguration.AuthAlgorithm
Recognized IEEE 802.11 authentication algorithms. |
static class |
WifiConfiguration.GroupCipher
Recognized group ciphers. |
static class |
WifiConfiguration.KeyMgmt
Recognized key management schemes. |
static class |
WifiConfiguration.PairwiseCipher
Recognized pairwise ciphers for WPA. |
static class |
WifiConfiguration.Protocol
Recognized security protocols. |
static class |
WifiConfiguration.Status
Possible status of a network configuration. |
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
BitSet |
allowedAuthAlgorithms
The set of authentication protocols supported by this configuration. |
BitSet |
allowedGroupCiphers
The set of group ciphers supported by this configuration. |
BitSet |
allowedKeyManagement
The set of key management protocols supported by this configuration. |
BitSet |
allowedPairwiseCiphers
The set of pairwise ciphers for WPA supported by this configuration. |
BitSet |
allowedProtocols
The set of security protocols supported by this configuration. |
String |
BSSID
When set, this network configuration entry should only be used when associating with the AP having the specified BSSID. |
static String |
bssidVarName
|
static Parcelable.Creator<WifiConfiguration> |
CREATOR
Implement the Parcelable interface |
boolean |
hiddenSSID
This is a network that does not broadcast its SSID, so an SSID-specific probe request must be used for scans. |
static String |
hiddenSSIDVarName
|
int |
networkId
The ID number that the supplicant uses to identify this network configuration entry. |
String |
preSharedKey
Pre-shared key for use with WPA-PSK. |
int |
priority
Priority determines the preference given to a network by wpa_supplicant
when choosing an access point with which to associate. |
static String |
priorityVarName
|
static String |
pskVarName
|
String |
SSID
The network's SSID. |
static String |
ssidVarName
|
int |
status
The current status of this network configuration entry. |
String[] |
wepKeys
Up to four WEP keys. |
static String[] |
wepKeyVarNames
|
static String |
wepTxKeyIdxVarName
|
int |
wepTxKeyIndex
Default WEP key index, ranging from 0 to 3. |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
WifiConfiguration()
|
|
| Method Summary | |
|---|---|
int |
describeContents()
Implement the Parcelable interface |
void |
writeToParcel(Parcel dest,
int flags)
Implement the Parcelable interface |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ssidVarName
public static final String bssidVarName
public static final String pskVarName
public static final String[] wepKeyVarNames
public static final String wepTxKeyIdxVarName
public static final String priorityVarName
public static final String hiddenSSIDVarName
public int networkId
public int status
WifiConfiguration.Statuspublic String SSID
"MyNetwork", or a string of
hex digits,which are not enclosed in quotes
(e.g., 01a243f405).
public String BSSID
XX:XX:XX:XX:XX:XX where each X is a hex digit.
public String preSharedKey
public String[] wepKeys
"abcdef" or a string
of hex digits (e.g., 0102030405).
When the value of one of these keys is read, the actual key is
not returned, just a "*" if the key has a value, or the null
string otherwise.
public int wepTxKeyIndex
public int priority
wpa_supplicant
when choosing an access point with which to associate.
public boolean hiddenSSID
public BitSet allowedKeyManagement
WifiConfiguration.KeyMgmt for descriptions of the values.
Defaults to WPA-PSK WPA-EAP.
public BitSet allowedProtocols
WifiConfiguration.Protocol for descriptions of the values.
Defaults to WPA RSN.
public BitSet allowedAuthAlgorithms
WifiConfiguration.AuthAlgorithm for descriptions of the values.
Defaults to automatic selection.
public BitSet allowedPairwiseCiphers
WifiConfiguration.PairwiseCipher for descriptions of the values.
Defaults to CCMP TKIP.
public BitSet allowedGroupCiphers
WifiConfiguration.GroupCipher for descriptions of the values.
Defaults to CCMP TKIP WEP104 WEP40.
public static final Parcelable.Creator<WifiConfiguration> CREATOR
| Constructor Detail |
|---|
public WifiConfiguration()
| Method Detail |
|---|
public int describeContents()
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int flags)
writeToParcel in interface Parcelabledest - The Parcel in which the object should be written.flags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||