Condividi tramite


WifiAwareDataPathSecurityConfig.Builder(Int32) Constructor

Definition

Create a builder for a Wi-Fi Aware data-path security config to encrypt the link with specified cipher suite.

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=33)]
public Builder (int cipherSuite);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=33)>]
new Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder : int -> Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig.Builder

Parameters

cipherSuite
Int32

The cipher suite to be used to encrypt the link. One of the Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_SK_128, Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_SK_256, Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_PK_128 and Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_PK_256.

Attributes

Remarks

Create a builder for a Wi-Fi Aware data-path security config to encrypt the link with specified cipher suite. Use Characteristics#getSupportedCipherSuites() to get the supported capabilities of the device. <ul> <li>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.</li> <li>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.</li> </ul>

Java documentation for android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder.WifiAwareDataPathSecurityConfig$Builder(int).

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