共用方式為


ServiceDiscoveryInfo.GetScid Method

Definition

Get the Security context identifier is associate with PMK for data path security config.

[Android.Runtime.Register("getScid", "()[B", "", ApiSince=33)]
public byte[]? GetScid ();
[<Android.Runtime.Register("getScid", "()[B", "", ApiSince=33)>]
member this.GetScid : unit -> byte[]

Returns

Byte[]

An arbitrary byte array represent the security context identifier. null if Security context identifier is not set.

Attributes

Remarks

Get the Security context identifier is associate with PMK for data path security config. Only use for Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_PK_128 and Characteristics#WIFI_AWARE_CIPHER_SUITE_NCS_PK_256 to get the PMKID set by WifiAwareDataPathSecurityConfig.Builder#setPmkId(byte[]) from publish session. This can help the Wi-Fi Aware data-path setup to select the correct PMK/PMKID

Java documentation for android.net.wifi.aware.ServiceDiscoveryInfo.getScid().

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