Language

PublishConfig.Builder.SetDataPathSecurityConfig Method

Definition

Configure security config for the Wi-Fi Aware publish session.

[Android.Runtime.Register("setDataPathSecurityConfig", "(Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig;)Landroid/net/wifi/aware/PublishConfig$Builder;", "", ApiSince=33)]
public Android.Net.Wifi.Aware.PublishConfig.Builder SetDataPathSecurityConfig(Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig securityConfig);
[<Android.Runtime.Register("setDataPathSecurityConfig", "(Landroid/net/wifi/aware/WifiAwareDataPathSecurityConfig;)Landroid/net/wifi/aware/PublishConfig$Builder;", "", ApiSince=33)>]
member this.SetDataPathSecurityConfig : Android.Net.Wifi.Aware.WifiAwareDataPathSecurityConfig -> Android.Net.Wifi.Aware.PublishConfig.Builder

Parameters

securityConfig
WifiAwareDataPathSecurityConfig

The security configuration used to create the security context identifier. This value cannot be null.

Returns

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

Attributes

Remarks

Configure security for the Wi-Fi Aware publish session. The configuration must match the one used to request a data path with SetDataPathSecurityConfig(WifiAwareDataPathSecurityConfig). The security context identifier (SCID), which contains a PMKID, is transmitted in the publish message. The subscriber can obtain it with GetScid(). This method is optional. If it is not called, no SCID is passed in the publish message or provided to the subscriber. Security can still be negotiated using out-of-band mechanisms.

Android reference for android.net.wifi.aware.PublishConfig.Builder.setDataPathSecurityConfig.

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