Język

WifiAwareDataPathSecurityConfig.Builder.SetPmkId(Byte[]) Method

Definition

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

[Android.Runtime.Register("setPmkId", "([B)Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig$Builder;", "", ApiSince=33)]
public Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder SetPmkId(byte[] pmkId);
[<Android.Runtime.Register("setPmkId", "([B)Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig$Builder;", "", ApiSince=33)>]
member this.SetPmkId : byte[] -> Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder

Parameters

pmkId
Byte[]

A PMKID (pairwise master key associated identifier, see IEEE 802.11) is generated by Diffie-Hellman key exchange together with a Pairwise Master Key (PMK), specifying the identifier associated to the key to use for encrypting the data-path. For a public-key cipher suite, also set the PMK using SetPmk(Byte[]). This value cannot be null.

Returns

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

Attributes

Remarks

For the public-key cipher suites NcsPk128 and NcsPk256, both PMK and PMKID must be set. Use SetPmk(Byte[]) to set the PMK.

Android reference for android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder.setPmkId.

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