Language

WifiAwareNetworkSpecifier.Builder.SetPskPassphrase(String) Method

Definition

Configure the PSK Passphrase for the Wi-Fi Aware connection being requested.

[Android.Runtime.Register("setPskPassphrase", "(Ljava/lang/String;)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=29)]
public Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder SetPskPassphrase(string pskPassphrase);
[<Android.Runtime.Register("setPskPassphrase", "(Ljava/lang/String;)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=29)>]
member this.SetPskPassphrase : string -> Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder

Parameters

pskPassphrase
String

The passphrase to use to encrypt the link. Use SetPmk(Byte[]) to specify a PMK. 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. This method is optional. If no PMK, passphrase, or security configuration is supplied, the builder requests an open (unencrypted) connection. Use SetDataPathSecurityConfig(WifiAwareDataPathSecurityConfig) to specify a cipher suite explicitly and avoid interoperability issues when devices support different cipher suites. See WifiAwareDataPathSecurityConfig.Builder(Int32).

Android reference for android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder.setPskPassphrase.

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