Sprache

SoftApConfiguration.Builder.SetPassphrase(String, Int32) Methode

Definition

Gibt an, dass diese AP einen bestimmten Sicherheitstyp mit der angegebenen ASCII-Passphrase verwenden soll.

[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

Parameter

passphrase
String

Die Passphrase, die für eine bestimmte SecurityType-Konfiguration oder null mit SoftApConfiguration.SECURITY_TYPE_OPEN, SoftApConfiguration.SECURITY_TYPE_WPA3_OWE_TRANSITION und SoftApConfiguration.SECURITY_TYPE_WPA3_OWE verwendet werden soll.

securityType
Int32

Einer der folgenden Sicherheitstypen: 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. Der Wert ist einer der folgenden: 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

Gibt zurück

Generator für Verkettung. Dieser Wert darf nicht NULL sein.

Attribute

Hinweise

Gibt an, dass diese AP einen bestimmten Sicherheitstyp mit der angegebenen ASCII-Passphrase verwenden soll.

Android-Referenz für android.net.wifi.SoftApConfiguration.Builder.setPassphrase.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: