Stay organized with collections
Save and categorize content based on your preferences.
WifiConfiguration.Protocol
public
static
class
WifiConfiguration.Protocol
extends Object
Recognized security protocols.
Summary
Constants |
int |
RSN
RSN WPA2/WPA3/IEEE 802.11i
|
int |
WAPI
WAPI Protocol
|
int |
WPA
This constant was deprecated
in API level 28.
Due to security and performance limitations, use of WPA-1 networks
is discouraged. WPA-2 (RSN) should be used instead.
|
String |
varName
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
RSN
public static final int RSN
RSN WPA2/WPA3/IEEE 802.11i
Constant Value:
1
(0x00000001)
WAPI
public static final int WAPI
WAPI Protocol
Constant Value:
3
(0x00000003)
WPA
public static final int WPA
This constant was deprecated
in API level 28.
Due to security and performance limitations, use of WPA-1 networks
is discouraged. WPA-2 (RSN) should be used instead.
WPA/IEEE 802.11i/D3.0
Constant Value:
0
(0x00000000)
varName
public static final String varName
Constant Value:
"proto"
Fields
strings
public static final String[] strings
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[],[],null,["# WifiConfiguration.Protocol\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Fields](#lfields) \\| [Inherited Methods](#inhmethods) \n\nWifiConfiguration.Protocol\n==========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/wifi/WifiConfiguration.Protocol \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\nclass\nWifiConfiguration.Protocol\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.net.wifi.WifiConfiguration.Protocol |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRecognized security protocols.\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [RSN](/reference/android/net/wifi/WifiConfiguration.Protocol#RSN) RSN WPA2/WPA3/IEEE 802.11i |\n| `int` | [WAPI](/reference/android/net/wifi/WifiConfiguration.Protocol#WAPI) WAPI Protocol |\n| `int` | [WPA](/reference/android/net/wifi/WifiConfiguration.Protocol#WPA) *This constant was deprecated in API level 28. Due to security and performance limitations, use of WPA-1 networks is discouraged. WPA-2 (RSN) should be used instead.* |\n| [String](/reference/java/lang/String) | [varName](/reference/android/net/wifi/WifiConfiguration.Protocol#varName) |\n\n| ### Fields ||\n|----------------------------------------------------------------|---------------------------------------------------------------------------|\n| ` public static final `[String[]](/reference/java/lang/String) | [strings](/reference/android/net/wifi/WifiConfiguration.Protocol#strings) |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### RSN\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int RSN\n```\n\nRSN WPA2/WPA3/IEEE 802.11i\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### WAPI\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int WAPI\n```\n\nWAPI Protocol\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### WPA\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n28](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int WPA\n```\n\n\n**This constant was deprecated\nin API level 28.** \n\nDue to security and performance limitations, use of WPA-1 networks\nis discouraged. WPA-2 (RSN) should be used instead.\n\nWPA/IEEE 802.11i/D3.0\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### varName\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String varName\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"proto\"\n\n\nFields\n------\n\n### strings\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String[] strings\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]