WifiConfiguration.SetSecurityParams(Int32) 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.
Set the various security params to correspond to the provided security type.
[Android.Runtime.Register("setSecurityParams", "(I)V", "GetSetSecurityParams_IHandler", ApiSince=30)]
public virtual void SetSecurityParams (int securityType);
[<Android.Runtime.Register("setSecurityParams", "(I)V", "GetSetSecurityParams_IHandler", ApiSince=30)>]
abstract member SetSecurityParams : int -> unit
override this.SetSecurityParams : int -> unit
Parameters
- securityType
- Int32
- Attributes
Remarks
Set the various security params to correspond to the provided security type. This is accomplished by setting the various BitSets exposed in WifiConfiguration. <br> This API would clear existing security types and add a default one.
Before calling this API with #SECURITY_TYPE_DPP
as securityType, call WifiManager#isEasyConnectDppAkmSupported() to know whether this security type is supported or not.
@param securityType One of the following security types: {@link #SECURITY_TYPE_OPEN
, #SECURITY_TYPE_WEP
, #SECURITY_TYPE_PSK
, #SECURITY_TYPE_EAP
, #SECURITY_TYPE_SAE
, #SECURITY_TYPE_OWE
, #SECURITY_TYPE_WAPI_PSK
, #SECURITY_TYPE_WAPI_CERT
, #SECURITY_TYPE_EAP_WPA3_ENTERPRISE
, #SECURITY_TYPE_EAP_WPA3_ENTERPRISE_192_BIT
, #SECURITY_TYPE_DPP
,
Java documentation for android.net.wifi.WifiConfiguration.setSecurityParams(int)
.
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.