WifiAwareNetworkSpecifier.Builder.SetPskPassphrase(String) 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 PSK Passphrase for the Wi-Fi Aware connection being requested.
[Android.Runtime.Register("setPskPassphrase", "(Ljava/lang/String;)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=29)]
public Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder SetPskPassphrase(string pskPassphrase);
[<Android.Runtime.Register("setPskPassphrase", "(Ljava/lang/String;)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=29)>]
member this.SetPskPassphrase : string -> Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder
Parameters
- pskPassphrase
- String
The (optional) passphrase to be used to encrypt the link. Use the setPmk(byte[]) to specify a PMK. This value cannot be null.
Returns
the current Builder builder, enabling chaining of builder methods. This value cannot be null.
- Attributes
Remarks
Configure the PSK Passphrase for the Wi-Fi Aware connection being requested. This method is optional - if not called, then an Open (unencrypted) connection will be created. Note: Use setDataPathSecurityConfig(WifiAwareDataPathSecurityConfig) to avoid interoperability issues when devices support different cipher suites by explicitly specifying a cipher suite as opposed to relying on a default cipher suite. WifiAwareDataPathSecurityConfig.Builder.Builder(int)
Android reference for android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder.setPskPassphrase.
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.