Język

WifiAwareDataPathSecurityConfig.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/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 use to encrypt the link. For a shared-key cipher suite, use SetPmk(Byte[]) to specify a PMK instead. This value cannot be null.

Returns

the current Builder builder, enabling chaining of builder methods. This value cannot be null.

Attributes

Remarks

For the shared-key cipher suites NcsSk128 and NcsSk256, set either a passphrase or a PMK, but not both.

Android reference for android.net.wifi.aware.WifiAwareDataPathSecurityConfig.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