Class WiFiSecurity

Definition

Namespace:
Tizen.Network.WiFi
Assembly:
Tizen.Network.WiFi.dll
API Level:
3

A class for managing the Wi-Fi security information.

C#
Copy
public class WiFiSecurity
Inheritance
System.Object
WiFiSecurity

Properties

View Source

EapInformation

The EAP information.

Declaration
C#
Copy
public WiFiEap EapInformation { get; }
Property Value
Type Description
WiFiEap

EAP information of the Wi-Fi.

API Level: 3
View Source

EncryptionType

The type of Wi-Fi encryption.

Declaration
C#
Copy
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.

API Level: 3
View Source

IsPassphraseRequired

A property to check whether the passphrase is required or not.

Declaration
C#
Copy
public bool IsPassphraseRequired { get; }
Property Value
Type Description
Boolean

Boolean value to check if the passphrase is required or not.

API Level: 3
View Source

IsWpsSupported

A property to check whether Wi-Fi Protected Setup (WPS) is supported.

Declaration
C#
Copy
public bool IsWpsSupported { get; }
Property Value
Type Description
Boolean

Boolean value to check if WPS is supported.

API Level: 3
View Source

SecurityType

The type of Wi-Fi security.

Declaration
C#
Copy
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.

API Level: 3

Methods

View Source

SetPassphrase(String)

Sets the passphrase.

Declaration
C#
Copy
public void SetPassphrase(string passphrase)
Parameters
Type Name Description
System.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.

API Level: 3
Feature: http://tizen.org/feature/network.wifi