Język

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 the setPskPassphrase(String) to specify a Passphrase. 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 not called, then an Open (unencrypted) connection will be created. Note: Use setDataPathSecurityConfig(WifiAwareDataPathSecurityConfig) to avoid interoperability issues when devices support different cipher suites by explicitly specifying a cipher suite as opposed to relying on a default cipher suite.

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