Stay organized with collections
Save and categorize content based on your preferences.
WifiConfiguration.PairwiseCipher
public
static
class
WifiConfiguration.PairwiseCipher
extends Object
Recognized pairwise ciphers for WPA.
Summary
Constants |
int |
CCMP
AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
|
int |
GCMP_128
AES in Galois/Counter Mode with a 128-bit integrity key
|
int |
GCMP_256
AES in Galois/Counter Mode
|
int |
NONE
Use only Group keys (deprecated)
|
int |
SMS4
SMS4 cipher for WAPI
|
int |
TKIP
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
CCMP
public static final int CCMP
AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
Constant Value:
2
(0x00000002)
GCMP_128
public static final int GCMP_128
AES in Galois/Counter Mode with a 128-bit integrity key
Constant Value:
5
(0x00000005)
GCMP_256
public static final int GCMP_256
AES in Galois/Counter Mode
Constant Value:
3
(0x00000003)
NONE
public static final int NONE
Use only Group keys (deprecated)
Constant Value:
0
(0x00000000)
SMS4
public static final int SMS4
SMS4 cipher for WAPI
Constant Value:
4
(0x00000004)
TKIP
public static final int TKIP
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.
Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
Constant Value:
1
(0x00000001)
varName
public static final String varName
Constant Value:
"pairwise"
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# WifiConfiguration.PairwiseCipher\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Fields](#lfields) \\| [Inherited Methods](#inhmethods) \n\nWifiConfiguration.PairwiseCipher\n================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/wifi/WifiConfiguration.PairwiseCipher \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\nclass\nWifiConfiguration.PairwiseCipher\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.PairwiseCipher |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRecognized pairwise ciphers for WPA.\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [CCMP](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher#CCMP) AES in Counter mode with CBC-MAC \\[RFC 3610, IEEE 802.11i/D7.0\\] |\n| `int` | [GCMP_128](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher#GCMP_128) AES in Galois/Counter Mode with a 128-bit integrity key |\n| `int` | [GCMP_256](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher#GCMP_256) AES in Galois/Counter Mode |\n| `int` | [NONE](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher#NONE) Use only Group keys (deprecated) |\n| `int` | [SMS4](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher#SMS4) SMS4 cipher for WAPI |\n| `int` | [TKIP](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher#TKIP) *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.PairwiseCipher#varName) |\n\n| ### Fields ||\n|----------------------------------------------------------------|---------------------------------------------------------------------------------|\n| ` public static final `[String[]](/reference/java/lang/String) | [strings](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher#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### CCMP\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int CCMP\n```\n\nAES in Counter mode with CBC-MAC \\[RFC 3610, IEEE 802.11i/D7.0\\]\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### GCMP_128\n\nAdded in [API level 31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int GCMP_128\n```\n\nAES in Galois/Counter Mode with a 128-bit integrity key\n\n\u003cbr /\u003e\n\nConstant Value:\n\n5\n(0x00000005)\n\n\n### GCMP_256\n\nAdded in [API level 29](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int GCMP_256\n```\n\nAES in Galois/Counter Mode\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### NONE\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int NONE\n```\n\nUse only Group keys (deprecated)\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### SMS4\n\nAdded in [API level 30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int SMS4\n```\n\nSMS4 cipher for WAPI\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4\n(0x00000004)\n\n\n### TKIP\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 TKIP\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\nTemporal Key Integrity Protocol \\[IEEE 802.11i/D7.0\\]\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\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\"pairwise\"\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"]]