WifiAwareDataPathSecurityConfig.Builder.SetPmk(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configure the PMK for the Wi-Fi Aware connection being requested.
[Android.Runtime.Register("setPmk", "([B)Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig$Builder;", "", ApiSince=33)]
public Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder SetPmk(byte[] pmk);
[<Android.Runtime.Register("setPmk", "([B)Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig$Builder;", "", ApiSince=33)>]
member this.SetPmk : byte[] -> Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder
Parameters
- pmk
- Byte[]
A PMK (pairwise master key, see IEEE 802.11i) specifying the key to use for encrypting the data-path. Alternatively, use the setPskPassphrase(String) to specify a Passphrase instead for shared key cipher suite. Use the setPmkId(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 PMK for the Wi-Fi Aware connection being requested. For shared key cipher suite Characteristics.WIFI_AWARE_CIPHER_SUITE_NCS_SK_128 and Characteristics.WIFI_AWARE_CIPHER_SUITE_NCS_SK_256, either passphrase or PMK must be set. 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 be set.
Android reference for android.net.wifi.aware.WifiAwareDataPathSecurityConfig.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.