Språk

WifiAwareNetworkSpecifier.Builder.SetPmk(Byte[]) Method

Definition

Configure the PMK for the Wi-Fi Aware connection being requested.

[Android.Runtime.Register("setPmk", "([B)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=30)]
public Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder SetPmk(byte[] pmk);
[<Android.Runtime.Register("setPmk", "([B)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=30)>]
member this.SetPmk : byte[] -> Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder

Parameters

pmk
Byte[]

A PMK (pairwise master key, see IEEE 802.11i) specifying the key to use for encrypting the data-path. Use SetPskPassphrase(String) to specify a passphrase instead. This value cannot be null.

Returns

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

Attributes

Remarks

Configure the PMK 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.

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

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