Partager via


WifiConfiguration.PreSharedKey Property

Definition

Pre-shared key for use with WPA-PSK.

[Android.Runtime.Register("preSharedKey")]
public string? PreSharedKey { get; set; }
[<Android.Runtime.Register("preSharedKey")>]
member this.PreSharedKey : string with get, set

Property Value

Attributes

Remarks

Pre-shared key for use with WPA-PSK. Either an ASCII string enclosed in double quotation marks (e.g., "abcdefghij" for PSK passphrase or a string of 64 hex digits for raw 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.

Java documentation for android.net.wifi.WifiConfiguration.preSharedKey.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to