Stay organized with collections
Save and categorize content based on your preferences.
Protocol
open class Protocol
Recognized security protocols.
Summary
Constants |
static Int |
RSN WPA2/WPA3/IEEE 802.
|
static Int |
WAPI Protocol
|
static Int |
WPA/IEEE 802.
|
static String |
|
Constants
RSN
static val RSN: Int
RSN WPA2/WPA3/IEEE 802.11i
Value: 1
WAPI
static val WAPI: Int
WAPI Protocol
Value: 3
WPA
static val WPA: Int
Deprecated: 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
Value: 0
varName
static val varName: String
Value: "proto"
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.Protocol\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nProtocol\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/wifi/WifiConfiguration.Protocol \"View this page in Java\") \n\n```\nopen class Protocol\n```\n\n|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.wifi.WifiConfiguration.Protocol](#) |\n\nRecognized security protocols.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [RSN](#RSN:kotlin.Int) RSN WPA2/WPA3/IEEE 802. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [WAPI](#WAPI:kotlin.Int) WAPI Protocol |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [WPA](#WPA:kotlin.Int) WPA/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### RSN\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val RSN: Int\n```\n\nRSN WPA2/WPA3/IEEE 802.11i \n\n Value: 1\n\n### WAPI\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val WAPI: Int\n```\n\nWAPI Protocol \n\n Value: 3\n\n### WPA\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 WPA: 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\nWPA/IEEE 802.11i/D3.0 \n\n Value: 0\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: \"proto\"\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```"]]