SettingWirelessSecurity
Object Hierarchy:
Description:
[ CCode ( type_id = "nm_setting_wireless_security_get_type ()" ) ]
public sealed class SettingWirelessSecurity : Setting
public sealed class SettingWirelessSecurity : Setting
Wi-Fi Security Settings
Namespace: NM
Package: libnm
Content:
Constants:
- public const string AUTH_ALG
- public const string FILS
- 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 PMF
- 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
- public const string WPS_METHOD
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 int fils { get; set; }
Indicates whether Fast Initial Link Setup (802.11ai) must be enabled for the connection.
- public string[] group { owned get; set; }
A list of group/broadcast encryption algorithms which prevents connections to Wi-Fi networks that do not utilize one of the algorithms in the list.
- 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 SettingSecretFlags 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[] pairwise { owned get; set; }
A list of pairwise encryption algorithms which prevents connections to Wi-Fi networks that do not utilize one of the algorithms in the list.
- public int pmf { get; set; }
Indicates whether Protected Management Frames (802.11w) must be enabled for the connection.
- public string[] proto { owned get; set; }
List of strings specifying the allowed WPA protocol versions to use.
- public string psk { owned get; set; }
Pre-Shared-Key for WPA networks.
- public SettingSecretFlags 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 SettingSecretFlags wep_key_flags { get; set; }
- public WepKeyType wep_key_type { get; set; }
Controls the interpretation of WEP keys.
- public uint wep_tx_keyidx { get; set; }
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.
- public uint wps_method { get; set; }
Flags indicating which mode of WPS is to be used if any.
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 SettingWirelessSecurityFils get_fils ()
- 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 SettingWirelessSecurityPmf get_pmf ()
- 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 SettingWirelessSecurityWpsMethod get_wps_method ()
- 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