Language

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. Use the setPmk(byte[]) together for public key cipher suite. This value cannot be null.

Returns

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

Attributes

Remarks

Configure the PMKID for the Wi-Fi Aware connection being requested. For public key cipher suite Characteristics.WIFI_AWARE_CIPHER_SUITE_NCS_PK_128 and Characteristics.WIFI_AWARE_CIPHER_SUITE_NCS_PK_256. both PMK and PMKID must set setPmk(byte[])

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