PasnConfig
class PasnConfig : Parcelable
kotlin.Any | |
↳ | android.net.wifi.rtt.PasnConfig |
Pre-association security negotiation (PASN) configuration.
PASN configuration in IEEE 802.11az focuses on securing the ranging process before a device fully associates with a Wi-Fi network. IEEE 802.11az supports various based AKMs as in AKM_*
for PASN and cipher as in CIPHER_*
. Password is also another input to some base AKMs.
Once PASN is initiated, the AP and the client device exchange messages to authenticate each other and establish security keys. This process ensures that only authorized devices can participate in ranging.
After successful PASN authentication, ranging operations are performed using the established secure channel. This protects the ranging measurements from eavesdropping and tampering.
The keys derived during the PASN process are used to protect the LTFs exchanged during ranging. This ensures that the LTFs are encrypted and authenticated, preventing unauthorized access and manipulation.
Summary
Nested classes | |
---|---|
Builder for |
Constants | |
---|---|
static Int |
Fast Initial Link Setup (FILS) with Extensible Authentication Protocol (EAP) and SHA-256. |
static Int |
Fast Initial Link Setup (FILS) with Extensible Authentication Protocol (EAP) and SHA-384. |
static Int |
Fast BSS Transition (FT) with Extensible Authentication Protocol (EAP) and SHA-256. |
static Int |
Fast BSS Transition (FT) with Extensible Authentication Protocol (EAP) and SHA-384. |
static Int |
Fast BSS Transition (FT) with Pre-Shared Key (PSK) and SHA-256. |
static Int |
Fast BSS Transition (FT) with Pre-Shared Key (PSK) and SHA-384. |
static Int |
No authentication and key management. |
static Int |
Pre-association security negotiation (PASN). |
static Int |
Simultaneous authentication of equals (SAE). |
static Int |
Counter Mode with Cipher Block Chaining Message Authentication Code Protocol (CCMP) with 128-bit key. |
static Int |
Counter Mode with Cipher Block Chaining Message Authentication Code Protocol (CCMP) with 256-bit key. |
static Int |
Galois/Counter Mode Protocol (GCMP) with 128-bit key. |
static Int |
Galois/Counter Mode Protocol (GCMP) with 256-bit key. |
static Int |
No encryption. |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Boolean | |
Int |
Return base AKMs (Authentication and Key Management). |
Int |
Return pairwise ciphers. |
String? |
Get password used by base AKM. |
WifiSsid? |
Get Wifi SSID which is used to retrieve saved network profile if |
Int |
hashCode() |
String |
toString() |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<PasnConfig!> |
Constants
AKM_FILS_EAP_SHA256
static val AKM_FILS_EAP_SHA256: Int
Fast Initial Link Setup (FILS) with Extensible Authentication Protocol (EAP) and SHA-256.
Value: 64
AKM_FILS_EAP_SHA384
static val AKM_FILS_EAP_SHA384: Int
Fast Initial Link Setup (FILS) with Extensible Authentication Protocol (EAP) and SHA-384.
Value: 128
AKM_FT_EAP_SHA256
static val AKM_FT_EAP_SHA256: Int
Fast BSS Transition (FT) with Extensible Authentication Protocol (EAP) and SHA-256.
Value: 4
AKM_FT_EAP_SHA384
static val AKM_FT_EAP_SHA384: Int
Fast BSS Transition (FT) with Extensible Authentication Protocol (EAP) and SHA-384.
Value: 16
AKM_FT_PSK_SHA256
static val AKM_FT_PSK_SHA256: Int
Fast BSS Transition (FT) with Pre-Shared Key (PSK) and SHA-256.
Value: 8
AKM_FT_PSK_SHA384
static val AKM_FT_PSK_SHA384: Int
Fast BSS Transition (FT) with Pre-Shared Key (PSK) and SHA-384.
Value: 32
AKM_NONE
static val AKM_NONE: Int
No authentication and key management.
Value: 0
AKM_PASN
static val AKM_PASN: Int
Pre-association security negotiation (PASN).
Value: 1
AKM_SAE
static val AKM_SAE: Int
Simultaneous authentication of equals (SAE).
Value: 2
CIPHER_CCMP_128
static val CIPHER_CCMP_128: Int
Counter Mode with Cipher Block Chaining Message Authentication Code Protocol (CCMP) with 128-bit key.
Value: 1
CIPHER_CCMP_256
static val CIPHER_CCMP_256: Int
Counter Mode with Cipher Block Chaining Message Authentication Code Protocol (CCMP) with 256-bit key.
Value: 2
CIPHER_GCMP_128
static val CIPHER_GCMP_128: Int
Galois/Counter Mode Protocol (GCMP) with 128-bit key.
Value: 4
CIPHER_GCMP_256
static val CIPHER_GCMP_256: Int
Galois/Counter Mode Protocol (GCMP) with 256-bit key.
Value: 8
Public methods
describeContents
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
equals
fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj |
the reference object with which to compare. |
Return | |
---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getBaseAkms
fun getBaseAkms(): Int
Return base AKMs (Authentication and Key Management).
getCiphers
fun getCiphers(): Int
Return pairwise ciphers.
getPassword
fun getPassword(): String?
Get password used by base AKM. If null, password is retrieved from the saved network profile for the PASN authentication. See getWifiSsid()
on retrieving saved network profile.
getWifiSsid
fun getWifiSsid(): WifiSsid?
Get Wifi SSID which is used to retrieve saved network profile if getPassword()
is null. If Wifi SSID and password are not set and there is no saved profile corresponding to the responder, unauthenticated PASN will be used if RangingRequest.getSecurityMode()
allows. See SECURITY_MODE_*
for more details.
hashCode
fun hashCode(): Int
Return | |
---|---|
Int |
a hash code value for this object. |
toString
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel: This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |