Language

SoftApConfiguration.Builder.SetPassphrase(String, Int32) Method

Definition

Specifies that this AP should use specific security type with the given ASCII passphrase.

[Android.Runtime.Register("setPassphrase", "(Ljava/lang/String;I)Landroid/net/wifi/SoftApConfiguration$Builder;", "", ApiSince=36)]
public Android.Net.Wifi.SoftApConfiguration.Builder SetPassphrase(string? passphrase, int securityType);
[<Android.Runtime.Register("setPassphrase", "(Ljava/lang/String;I)Landroid/net/wifi/SoftApConfiguration$Builder;", "", ApiSince=36)>]
member this.SetPassphrase : string * int -> Android.Net.Wifi.SoftApConfiguration.Builder

Parameters

passphrase
String

The passphrase to use for sepcific securityType configuration or null with SoftApConfiguration.SECURITY_TYPE_OPEN, SoftApConfiguration.SECURITY_TYPE_WPA3_OWE_TRANSITION, and SoftApConfiguration.SECURITY_TYPE_WPA3_OWE.

securityType
Int32

One of the following security types: SoftApConfiguration.SECURITY_TYPE_OPEN, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK, SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION, SoftApConfiguration.SECURITY_TYPE_WPA3_SAE, SoftApConfiguration.SECURITY_TYPE_WPA3_OWE_TRANSITION, SoftApConfiguration.SECURITY_TYPE_WPA3_OWE. Value is one of the following: SoftApConfiguration.SECURITY_TYPE_OPEN; SoftApConfiguration.SECURITY_TYPE_WPA2_PSK; SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION; SoftApConfiguration.SECURITY_TYPE_WPA3_SAE; SoftApConfiguration.SECURITY_TYPE_WPA3_OWE_TRANSITION; SoftApConfiguration.SECURITY_TYPE_WPA3_OWE

Returns

Builder for chaining. This value cannot be null.

Attributes

Remarks

Specifies that this AP should use specific security type with the given ASCII passphrase.

Android reference for android.net.wifi.SoftApConfiguration.Builder.setPassphrase.

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