Stay organized with collections
Save and categorize content based on your preferences.
PairwiseCipher
open class PairwiseCipher
Recognized pairwise ciphers for WPA.
Summary
Constants |
static Int |
AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.
|
static Int |
AES in Galois/Counter Mode with a 128-bit integrity key
|
static Int |
AES in Galois/Counter Mode
|
static Int |
Use only Group keys (deprecated)
|
static Int |
SMS4 cipher for WAPI
|
static Int |
Temporal Key Integrity Protocol [IEEE 802.
|
static String |
|
Constants
CCMP
static val CCMP: Int
AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
Value: 2
GCMP_128
static val GCMP_128: Int
AES in Galois/Counter Mode with a 128-bit integrity key
Value: 5
GCMP_256
static val GCMP_256: Int
AES in Galois/Counter Mode
Value: 3
NONE
static val NONE: Int
Use only Group keys (deprecated)
Value: 0
SMS4
static val SMS4: Int
SMS4 cipher for WAPI
Value: 4
TKIP
static val TKIP: Int
Deprecated: 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]
Value: 1
varName
static val varName: String
Value: "pairwise"
Properties
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPairwiseCipher\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/wifi/WifiConfiguration.PairwiseCipher \"View this page in Java\") \n\n```\nopen class PairwiseCipher\n```\n\n|---|--------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.wifi.WifiConfiguration.PairwiseCipher](#) |\n\nRecognized pairwise ciphers for WPA.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CCMP](#CCMP:kotlin.Int) AES in Counter mode with CBC-MAC \\[RFC 3610, IEEE 802. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [GCMP_128](#GCMP_128:kotlin.Int) AES in Galois/Counter Mode with a 128-bit integrity key |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [GCMP_256](#GCMP_256:kotlin.Int) AES in Galois/Counter Mode |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [NONE](#NONE:kotlin.Int) Use only Group keys (deprecated) |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [SMS4](#SMS4:kotlin.Int) SMS4 cipher for WAPI |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TKIP](#TKIP:kotlin.Int) Temporal Key Integrity Protocol \\[IEEE 802. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [varName](#varName:kotlin.String) \u003cbr /\u003e |\n\n| Properties ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------|\n| static [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e! | [strings](#strings:kotlin.Array) \u003cbr /\u003e |\n\nConstants\n---------\n\n### CCMP\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CCMP: Int\n```\n\nAES in Counter mode with CBC-MAC \\[RFC 3610, IEEE 802.11i/D7.0\\] \n\n Value: 2\n\n### GCMP_128\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val GCMP_128: Int\n```\n\nAES in Galois/Counter Mode with a 128-bit integrity key \n\n Value: 5\n\n### GCMP_256\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val GCMP_256: Int\n```\n\nAES in Galois/Counter Mode \n\n Value: 3\n\n### NONE\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val NONE: Int\n```\n\nUse only Group keys (deprecated) \n\n Value: 0\n\n### SMS4\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val SMS4: Int\n```\n\nSMS4 cipher for WAPI \n\n Value: 4\n\n### TKIP\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TKIP: Int\n```\n\n**Deprecated:** *Due to security and performance limitations, use of WPA-1 networks is discouraged. WPA-2 (RSN) should be used instead.*\n\nTemporal Key Integrity Protocol \\[IEEE 802.11i/D7.0\\] \n\n Value: 1\n\n### varName\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val varName: String\n``` \n\n Value: \"pairwise\"\n\nProperties\n----------\n\n### strings\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val strings: Array\u003cString!\u003e!\n```"]]