PasnConfig.Builder


public static final class PasnConfig.Builder
extends Object

java.lang.Object
   ↳ android.net.wifi.rtt.PasnConfig.Builder


Builder for PasnConfig

Summary

Public constructors

Builder(int baseAkms, int ciphers)

Builder

Public methods

PasnConfig build()

Builds a PasnConfig object.

PasnConfig.Builder setPassword(String password)

Sets the password if needed by the base AKM of the PASN.

PasnConfig.Builder setWifiSsid(WifiSsid wifiSsid)

Sets the Wi-Fi Service Set Identifier (SSID).

Inherited methods

Public constructors

Builder

public Builder (int baseAkms, 
                int ciphers)

Builder

Parameters
baseAkms int: The AKMs that PASN is configured to use. PASN will use the most secure AKM in the configuration. Value is either 0 or a combination of PasnConfig.AKM_NONE, PasnConfig.AKM_PASN, PasnConfig.AKM_SAE, PasnConfig.AKM_FT_EAP_SHA256, PasnConfig.AKM_FT_PSK_SHA256, PasnConfig.AKM_FT_EAP_SHA384, PasnConfig.AKM_FT_PSK_SHA384, PasnConfig.AKM_FILS_EAP_SHA256, and PasnConfig.AKM_FILS_EAP_SHA384

ciphers int: The CIPHERs that PASN is configured to use. PASN will use the most secure CIPHER in the configuration which is applicable to the base AKM Value is either 0 or a combination of PasnConfig.CIPHER_NONE, PasnConfig.CIPHER_CCMP_128, PasnConfig.CIPHER_CCMP_256, PasnConfig.CIPHER_GCMP_128, and PasnConfig.CIPHER_GCMP_256

Public methods

build

public PasnConfig build ()

Builds a PasnConfig object.

Returns
PasnConfig This value cannot be null.

setPassword

public PasnConfig.Builder setPassword (String password)

Sets the password if needed by the base AKM of the PASN. If not set, password is retrieved from the saved profile identified by the SSID. See setWifiSsid(android.net.wifi.WifiSsid). Note: If password and SSID is not set, secure ranging will use unauthenticated PASN.

Parameters
password String: password string This value cannot be null.

Returns
PasnConfig.Builder a reference to this Builder This value cannot be null.

setWifiSsid

public PasnConfig.Builder setWifiSsid (WifiSsid wifiSsid)

Sets the Wi-Fi Service Set Identifier (SSID). This is used to get the saved profile to retrieve password if password is not set using setPassword(java.lang.String). Note: If password and SSID is not set, secure ranging will use unauthenticated PASN.

Parameters
wifiSsid WifiSsid: Wi-Fi Service Set Identifier (SSID) This value cannot be null.

Returns
PasnConfig.Builder a reference to this Builder This value cannot be null.