Android
android.net.wifi
public class

android.net.wifi.WifiConfiguration

java.lang.Object
android.net.wifi.WifiConfiguration Parcelable

A class representing a configured Wi-Fi network, including the security configuration. Android will not necessarily support all of these security schemes initially.

Nested Classes
WifiConfiguration.AuthAlgorithm Recognized IEEE 802.11 authentication algorithms. 
WifiConfiguration.GroupCipher Recognized group ciphers. 
WifiConfiguration.KeyMgmt Recognized key management schemes. 
WifiConfiguration.PairCipher Recognized pairwise ciphers for WPA. 
WifiConfiguration.Protocol Recognized security protocols. 
WifiConfiguration.Status Possible status of a network configuration. 

Summary

Constants

      Value  
Creator<WifiConfiguration CREATOR  Implement the Parcelable interface      
Constants inherited from interface android.os.Parcelable

Fields

public      String  BSSID  When set, this network configuration entry should only be used when associating with the AP having the specified BSSID. 
public      String  SSID  The network's SSID. 
public      EnumSet<WifiConfiguration.AuthAlgorithm allowedAuthAlgorithms  The set of authentication protocols supported by this configuration. 
public      EnumSet<WifiConfiguration.GroupCipher allowedGroupCiphers  The set of group ciphers supported by this configuration. 
public      EnumSet<WifiConfiguration.KeyMgmt allowedKeyManagement  The set of key management protocols supported by this configuration. 
public      EnumSet<WifiConfiguration.PairCipher allowedPairCiphers  The set of pairwise ciphers for WPA supported by this configuration. 
public      EnumSet<WifiConfiguration.Protocol allowedProtocols  The set of security protocols supported by this configuration. 
public      int  networkId  The ID number that the supplicant uses to identify this network configuration entry. 
public      String  preSharedKey  Pre-shared key for use with WPA-PSK. 
public      int  priority  Priority determines the preference given to a network by wpa_supplicant when choosing an access point with which to associate. 
public      WifiConfiguration.Status  status  The current status of this network configuration entry. 
public      String[]  wepKeys  Up to four WEP keys. 
public      int  wepTxKeyIndex  Default WEP key index, ranging from 0 to 3. 

Public Constructors

            WifiConfiguration()

Public Methods

          int  describeContents()
Implement the Parcelable interface
          void  writeToParcel(Parcel dest, int flags)
Implement the Parcelable interface
Methods inherited from class java.lang.Object
Methods inherited from interface android.os.Parcelable

Details

Constants

public static final Creator<WifiConfiguration> CREATOR

Implement the Parcelable interface

Fields

public String BSSID

When set, this network configuration entry should only be used when associating with the AP having the specified BSSID. The value is a string in the format of an Ethernet MAC address, e.g., XX:XX:XX:XX:XX:XX where each X is a hex digit.

public String SSID

The network's SSID. Can either be an ASCII string, which must be enclosed in double quotation marks (e.g., "MyNetwork", or a string of hex digits,which are not enclosed in quotes (e.g., 01a243f405).

public EnumSet<WifiConfiguration.AuthAlgorithm> allowedAuthAlgorithms

The set of authentication protocols supported by this configuration. See WifiConfiguration.AuthAlgorithm for descriptions of the values. Defaults to automatic selection.

public EnumSet<WifiConfiguration.GroupCipher> allowedGroupCiphers

The set of group ciphers supported by this configuration. See WifiConfiguration.GroupCipher for descriptions of the values. Defaults to CCMP TKIP WEP104 WEP40.

public EnumSet<WifiConfiguration.KeyMgmt> allowedKeyManagement

The set of key management protocols supported by this configuration. See WifiConfiguration.KeyMgmt for descriptions of the values. Defaults to WPA-PSK WPA-EAP.

public EnumSet<WifiConfiguration.PairCipher> allowedPairCiphers

The set of pairwise ciphers for WPA supported by this configuration. See WifiConfiguration.PairCipher for descriptions of the values. Defaults to CCMP TKIP.

public EnumSet<WifiConfiguration.Protocol> allowedProtocols

The set of security protocols supported by this configuration. See WifiConfiguration.Protocol for descriptions of the values. Defaults to WPA RSN.

public int networkId

The ID number that the supplicant uses to identify this network configuration entry. This must be passed as an argument to most calls into the supplicant.

public String preSharedKey

Pre-shared key for use with WPA-PSK.

When the value of this key is read, the actual key is not returned, just a "*" if the key has a value, or the null string otherwise.

public int priority

Priority determines the preference given to a network by wpa_supplicant when choosing an access point with which to associate.

public WifiConfiguration.Status status

The current status of this network configuration entry.

public String[] wepKeys

Up to four WEP keys. Either an ASCII string enclosed in double quotation marks (e.g., "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

Default WEP key index, ranging from 0 to 3.

Public Constructors

public WifiConfiguration()

Public Methods

public int describeContents()

Implement the Parcelable interface

public void writeToParcel(Parcel dest, int flags)

Implement the Parcelable interface
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56