PublishConfig.Builder.SetDataPathSecurityConfig 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 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 (optional) security config to be used to create 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 config for the Wi-Fi Aware publish session. The security config set here must be the same as the one used to request Wi-Fi Aware data-path connection using WifiAwareNetworkSpecifier.Builder.setDataPathSecurityConfig(WifiAwareDataPathSecurityConfig). This security config will create a security identifier (SCID) which contains a PMKID and transmitted in the publish message. The device which subscribe this session can get this info by ServiceDiscoveryInfo.getScid() This method is optional - if not called, then no security context identifier will be passed in the publish message, then no security context identifier will be provided in the ServiceDiscoveryInfo on the subscriber. Security can still be negotiated using out-of-band (OOB) 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.