Added in API level 33

WifiAwareDataPathSecurityConfig


class WifiAwareDataPathSecurityConfig : Parcelable
kotlin.Any
   ↳ android.net.wifi.aware.WifiAwareDataPathSecurityConfig

Wi-Fi Aware data-path security config. The config is used with WifiAwareNetworkSpecifier.Builder#setDataPathSecurityConfig(WifiAwareDataPathSecurityConfig) to request a secure data-path.

Summary

Nested classes

A builder class for a Wi-Fi Aware data-path security config to encrypt an Aware connection.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Get the cipher suite specified in this config

ByteArray?

Get the specified PMK in this config.

ByteArray?

Get the specified PMKID in this config.

String?

Get the specified passphrase in this config.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<WifiAwareDataPathSecurityConfig!>

Public methods

describeContents

Added in API level 33
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

Added in API level 33
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.

getPmk

Added in API level 33
fun getPmk(): ByteArray?

Get the specified PMK in this config.

Return
ByteArray? A PMK (pairwise master key, see IEEE 802.11i) specifying the key to use for encrypting the data-path. This value may be null.

getPmkId

Added in API level 33
fun getPmkId(): ByteArray?

Get the specified PMKID in this config.

Return
ByteArray? A PMKID (pairwise master key associated identifier, see IEEE 802.11) is generated by Diffie-Hellman key exchange together with a Pairwise Master Key. This value may be null.

getPskPassphrase

Added in API level 33
fun getPskPassphrase(): String?

Get the specified passphrase in this config.

Return
String? The passphrase to be used to encrypt the link. This value may be null.

hashCode

Added in API level 33
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 33
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 33
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

Properties

CREATOR

Added in API level 33
static val CREATOR: Parcelable.Creator<WifiAwareDataPathSecurityConfig!>