SettingWirelessSecurity
Object Hierarchy:
Description:
[ CCode ( type_id = "nm_setting_wireless_security_get_type ()" ) ]
public class SettingWirelessSecurity : Setting
public class SettingWirelessSecurity : Setting
Namespace: NM
Package: libnm-util
Content:
Constants:
- public const string AUTH_ALG
- public const string GROUP
- public const string KEY_MGMT
- public const string LEAP_PASSWORD
- public const string LEAP_PASSWORD_FLAGS
- public const string LEAP_USERNAME
- public const string PAIRWISE
- public const string PROTO
- public const string PSK
- public const string PSK_FLAGS
- public const string SETTING_NAME
- public const string WEP_KEY0
- public const string WEP_KEY1
- public const string WEP_KEY2
- public const string WEP_KEY3
- public const string WEP_KEY_FLAGS
- public const string WEP_KEY_TYPE
- public const string WEP_TX_KEYIDX
Properties:
- public string auth_alg { owned get; set; }
When WEP is used (ie, key-mgmt = "none" or "ieee8021x") indicate the 802.11 authentication algorithm required by the AP here.
- public string key_mgmt { owned get; set; }
Key management used for the connection.
- public string leap_password { owned get; set; }
The login password for legacy LEAP connections (ie, key-mgmt = "ieee8021x" and auth-alg = "leap").
- public uint leap_password_flags { get; set; }
Flags indicating how to handle the leap_password property.
- public string leap_username { owned get; set; }
The login username for legacy LEAP connections (ie, key-mgmt = "ieee8021x" and auth-alg = "leap").
- public string psk { owned get; set; }
Pre-Shared-Key for WPA networks.
- public uint psk_flags { get; set; }
Flags indicating how to handle the psk property.
- public string wep_key0 { owned get; set; }
Index 0 WEP key.
- public string wep_key1 { owned get; set; }
Index 1 WEP key.
- public string wep_key2 { owned get; set; }
Index 2 WEP key.
- public string wep_key3 { owned get; set; }
Index 3 WEP key.
- public uint wep_key_flags { get; set; }
- public uint wep_key_type { get; set construct; }
Controls the interpretation of WEP keys.
- public uint wep_tx_keyidx { get; set construct; }
When static WEP is used (ie, key-mgmt = "none") and a non-default WEP key index is used by the AP, put that WEP key index here.
Creation methods:
- public SettingWirelessSecurity ()
Creates a new SettingWirelessSecurity object with default values.
Methods:
- public bool add_group (string group)
Adds an encryption algorithm to the list of allowed groupwise encryption algorithms.
- public bool add_pairwise (string pairwise)
Adds an encryption algorithm to the list of allowed pairwise encryption algorithms.
- public bool add_proto (string proto)
Adds a Wi-Fi security protocol (one of "wpa" or "rsn") to the allowed list; only protocols in this list will be used when finding and connecting to the Wi-Fi network specified by this connection.
- public void clear_groups ()
Removes all algorithms from the allowed list.
- public void clear_pairwise ()
Removes all algorithms from the allowed list.
- public void clear_protos ()
Removes all protocols from the allowed list.
- public unowned string get_auth_alg ()
- public unowned string get_group (uint32 i)
Returns the allowed groupwise encryption algorithm from allowed algorithm list.
- public unowned string get_key_mgmt ()
- public unowned string get_leap_password ()
- public SettingSecretFlags get_leap_password_flags ()
- public unowned string get_leap_username ()
- public uint32 get_num_groups ()
- public uint32 get_num_pairwise ()
- public uint32 get_num_protos ()
- public unowned string get_pairwise (uint32 i)
Returns the allowed pairwise encryption algorithm from allowed algorithm list.
- public unowned string get_proto (uint32 i)
- public unowned string get_psk ()
- public SettingSecretFlags get_psk_flags ()
- public unowned string get_wep_key (uint32 idx)
- public SettingSecretFlags get_wep_key_flags ()
- public WepKeyType get_wep_key_type ()
- public uint32 get_wep_tx_keyidx ()
- public void remove_group (uint32 i)
Removes an encryption algorithm from the allowed groupwise encryption algorithm list.
- public bool remove_group_by_value (string group)
Removes an encryption algorithm from the allowed groupwise encryption algorithm list.
- public void remove_pairwise (uint32 i)
Removes an encryption algorithm from the allowed pairwise encryption algorithm list.
- public bool remove_pairwise_by_value (string pairwise)
Removes an encryption algorithm from the allowed pairwise encryption algorithm list.
- public void remove_proto (uint32 i)
Removes a protocol from the allowed protocol list.
- public bool remove_proto_by_value (string proto)
Removes a protocol from the allowed protocol list.
- public void set_wep_key (uint32 idx, string key)
Sets a WEP key in the given index.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object