Class WiFiSecurity
Definition
- Assembly:
- Tizen.Network.WiFi.dll
A class for managing the Wi-Fi security information.
public class WiFiSecurity
- Inheritance
-
objectWiFiSecurity
Properties
View SourceEapInformation
The EAP information.
Declaration
public WiFiEap EapInformation { get; }
Property Value
| Type | Description |
|---|---|
| WiFiEap | EAP information of the Wi-Fi. |
EncryptionType
The type of Wi-Fi encryption.
Declaration
public WiFiEncryptionType EncryptionType { get; set; }
Property Value
| Type | Description |
|---|---|
| WiFiEncryptionType | Represents the encryption type of the Wi-Fi. |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | Thrown while setting this property when Wi-Fi is not supported. |
| System.ArgumentException | Thrown while setting this property due to an invalid parameter. |
| System.InvalidOperationException | Thrown while setting this value due to an invalid operation. |
IsPassphraseRequired
A property to check whether the passphrase is required or not.
Declaration
public bool IsPassphraseRequired { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean value to check if the passphrase is required or not. |
IsWpsSupported
A property to check whether Wi-Fi Protected Setup (WPS) is supported.
Declaration
public bool IsWpsSupported { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean value to check if WPS is supported. |
SecurityType
The type of Wi-Fi security.
Declaration
public WiFiSecurityType SecurityType { get; set; }
Property Value
| Type | Description |
|---|---|
| WiFiSecurityType | Represents the security type of the Wi-Fi. |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | Thrown while setting this property when Wi-Fi is not supported. |
| System.ArgumentException | Thrown while setting this property due to an invalid parameter. |
| System.InvalidOperationException | Thrown while setting this value due to an invalid operation. |
Methods
View SourceSetPassphrase(string)
Sets the passphrase.
Declaration
public void SetPassphrase(string passphrase)
Parameters
| Type | Name | Description |
|---|---|---|
| string | passphrase | The passphrase of the access point. |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | Thrown when Wi-Fi is not supported. |
| System.ArgumentNullException | Thrown when the passphrase is passed as null. |
| System.ArgumentException | Thrown when the method failed due to an invalid parameter. |
| System.InvalidOperationException | Thrown when the method failed due to an invalid operation. |