IT. Expert System.

Android Reference

WifiConfiguration


android.net.wifi

Class WifiConfiguration

  • All Implemented Interfaces:
    Parcelable


    public class WifiConfiguration
    extends Object
    implements Parcelable
    A class representing a configured Wi-Fi network, including the security configuration. Android will not necessarily support all of these security schemes initially.
    • Field Detail

      • OLD_PRIVATE_KEY_NAME

        public static final String OLD_PRIVATE_KEY_NAME
        In old configurations, the "private_key" field was used. However, newer configurations use the key_id field with the engine_id set to "keystore". If this field is found in the configuration, the migration code is triggered.
        See Also:
        Constant Field Values
      • KEYSTORE_ENGINE_ID

        public static final String KEYSTORE_ENGINE_ID
        String representing the keystore OpenSSL ENGINE's ID.
        See Also:
        Constant Field Values
      • KEYSTORE_URI

        public static final String KEYSTORE_URI
        String representing the keystore URI used for wpa_supplicant.
        See Also:
        Constant Field Values
      • ENGINE_ENABLE

        public static final String ENGINE_ENABLE
        String to set the engine value to when it should be enabled.
        See Also:
        Constant Field Values
      • ENGINE_DISABLE

        public static final String ENGINE_DISABLE
        String to set the engine value to when it should be disabled.
        See Also:
        Constant Field Values
      • wepKeyVarNames

        public static final String[] wepKeyVarNames
      • networkId

        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.
      • disableReason

        public int disableReason
        The code referring to a reason for disabling the network Valid when status == Status.DISABLED
      • SSID

        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).
      • BSSID

        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.
      • preSharedKey

        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.

      • wepKeys

        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.

      • wepTxKeyIndex

        public int wepTxKeyIndex
        Default WEP key index, ranging from 0 to 3.
      • priority

        public int priority
        Priority determines the preference given to a network by wpa_supplicant when choosing an access point with which to associate.
      • hiddenSSID

        public boolean hiddenSSID
        This is a network that does not broadcast its SSID, so an SSID-specific probe request must be used for scans.
      • allowedKeyManagement

        public BitSet 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.
      • allowedProtocols

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

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

        public BitSet allowedPairwiseCiphers
        The set of pairwise ciphers for WPA supported by this configuration. See WifiConfiguration.PairwiseCipher for descriptions of the values. Defaults to CCMP TKIP.
      • allowedGroupCiphers

        public BitSet allowedGroupCiphers
        The set of group ciphers supported by this configuration. See WifiConfiguration.GroupCipher for descriptions of the values. Defaults to CCMP TKIP WEP104 WEP40.
    • Constructor Detail

      • WifiConfiguration

        public WifiConfiguration()
      • WifiConfiguration

        public WifiConfiguration(WifiConfiguration source)
        copy constructor
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • getPrintableSsid

        public String getPrintableSsid()
      • getAuthType

        public int getAuthType()
      • describeContents

        public int describeContents()
        Implement the Parcelable interface
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 119 / 158796357. Delta: 0.04181 с