WifiAwareDataPathSecurityConfig.Builder.SetPskPassphrase(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configure the PSK Passphrase for the Wi-Fi Aware connection being requested.
[Android.Runtime.Register("setPskPassphrase", "(Ljava/lang/String;)Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig$Builder;", "", ApiSince=33)]
public Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder SetPskPassphrase(string pskPassphrase);
[<Android.Runtime.Register("setPskPassphrase", "(Ljava/lang/String;)Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig$Builder;", "", ApiSince=33)>]
member this.SetPskPassphrase : string -> Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder
Parameters
- pskPassphrase
- String
The passphrase to be used to encrypt the link. Alternatively, use the setPmk(byte[]) to specify a PMK for shared key cipher suite. This value cannot be null.
Returns
the current Builder builder, enabling chaining of builder methods. This value cannot be null.
- Attributes
Remarks
Configure the PSK Passphrase for the Wi-Fi Aware connection being requested. For shared key cipher suite Characteristics.WIFI_AWARE_CIPHER_SUITE_NCS_SK_128 and Characteristics.WIFI_AWARE_CIPHER_SUITE_NCS_SK_256, either passphrase or PMK must be set.
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.