# WifiConfiguration.Protocol

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Protocol

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/net/wifi/WifiConfiguration.Protocol "View this page in Java")  

```
open class Protocol
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                             ||
| ↳ | [android.net.wifi.WifiConfiguration.Protocol](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.Protocol#) |

Recognized security protocols.

## Summary

|                                                                                                             Constants                                                                                                             ||
|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [RSN](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.Protocol#RSN:kotlin.Int) RSN WPA2/WPA3/IEEE 802. |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WAPI](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.Protocol#WAPI:kotlin.Int) WAPI Protocol         |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WPA](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.Protocol#WPA:kotlin.Int) WPA/IEEE 802.           |
| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [varName](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.Protocol#varName:kotlin.String) <br />       |

|                                                                                                                                                   Properties                                                                                                                                                   ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| static [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>! | [strings](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.Protocol#strings:kotlin.Array) <br /> |

## Constants

### RSN

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val RSN: Int
```

RSN WPA2/WPA3/IEEE 802.11i  

    Value: 1

### WAPI

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WAPI: Int
```

WAPI Protocol  

    Value: 3

### WPA

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val varName: String
```  

    Value: "proto"

## Properties

### strings

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val strings: Array<String!>!
```