# WifiConfiguration.KeyMgmt

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

# KeyMgmt

*** ** * ** ***

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

```
open class KeyMgmt
```

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

Recognized key management schemes.

## Summary

|                                                                                                                                                                                          Constants                                                                                                                                                                                          ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [DPP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#DPP:kotlin.Int) Easy Connect - AKA Device Provisioning Protocol (DPP) For more details, visit<https://www.wi-fi.org/>and search for "Easy Connect" or "Device Provisioning Protocol specification". |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [FILS_SHA256](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#FILS_SHA256:kotlin.Int) IEEE 802.                                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [FILS_SHA384](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#FILS_SHA384:kotlin.Int) IEEE 802.                                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [FT_EAP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#FT_EAP:kotlin.Int) IEEE 802.                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [FT_PSK](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#FT_PSK:kotlin.Int) IEEE 802.                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [IEEE8021X](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#IEEE8021X:kotlin.Int) IEEE 802.                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NONE](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#NONE:kotlin.Int) WPA is not used; plaintext or static WEP could be used.                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [OSEN](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#OSEN:kotlin.Int) Hotspot 2.                                                                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [OWE](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#OWE:kotlin.Int) Opportunististic Wireless Encryption                                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [SAE](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#SAE:kotlin.Int) Simultaneous Authentication of Equals                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [SUITE_B_192](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#SUITE_B_192:kotlin.Int) SUITE_B_192 192 bit level                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WAPI_CERT](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#WAPI_CERT:kotlin.Int) WAPI certificate to be specified.                                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WAPI_PSK](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#WAPI_PSK:kotlin.Int) WAPI pre-shared key (requires`preSharedKey`to be specified).                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WPA2_PSK](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#WPA2_PSK:kotlin.Int) WPA2 pre-shared key for use with soft access point (requires`preSharedKey`to be specified).                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WPA_EAP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#WPA_EAP:kotlin.Int) WPA using EAP authentication.                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WPA_EAP_SHA256](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#WPA_EAP_SHA256:kotlin.Int) WPA using EAP authentication with stronger SHA256-based algorithms.                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WPA_PSK](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#WPA_PSK:kotlin.Int) WPA pre-shared key (requires`preSharedKey`to be specified).                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [WPA_PSK_SHA256](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#WPA_PSK_SHA256:kotlin.Int) WPA pre-shared key with stronger SHA256-based algorithms.                                                                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [varName](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.KeyMgmt#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.KeyMgmt#strings:kotlin.Array) <br /> |

## Constants

### DPP

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

```
static val DPP: Int
```

Easy Connect - AKA Device Provisioning Protocol (DPP) For more details, visit<https://www.wi-fi.org/>and search for "Easy Connect" or "Device Provisioning Protocol specification".  

    Value: 17

### FILS_SHA256

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

```
static val FILS_SHA256: Int
```

IEEE 802.11ai FILS SK with SHA256  

    Value: 15

### FILS_SHA384

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

```
static val FILS_SHA384: Int
```

IEEE 802.11ai FILS SK with SHA384:  

    Value: 16

### FT_EAP

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

```
static val FT_EAP: Int
```

IEEE 802.11r Fast BSS Transition with EAP authentication.  

    Value: 7

### FT_PSK

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

```
static val FT_PSK: Int
```

IEEE 802.11r Fast BSS Transition with PSK authentication.  

    Value: 6

### IEEE8021X

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

```
static val IEEE8021X: Int
```

IEEE 802.1X using EAP authentication and (optionally) dynamically generated WEP keys.  

    Value: 3

### NONE

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

```
static val NONE: Int
```

WPA is not used; plaintext or static WEP could be used.  

    Value: 0

### OSEN

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

```
static val OSEN: Int
```

Hotspot 2.0 r2 OSEN:  

    Value: 5

### OWE

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

```
static val OWE: Int
```

Opportunististic Wireless Encryption  

    Value: 9

### SAE

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

```
static val SAE: Int
```

Simultaneous Authentication of Equals  

    Value: 8

### SUITE_B_192

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

```
static val SUITE_B_192: Int
```

SUITE_B_192 192 bit level  

    Value: 10

### WAPI_CERT

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

```
static val WAPI_CERT: Int
```

WAPI certificate to be specified.  

    Value: 14

### WAPI_PSK

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

```
static val WAPI_PSK: Int
```

WAPI pre-shared key (requires`preSharedKey`to be specified).  

    Value: 13

### WPA2_PSK

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

```
static val WPA2_PSK: Int
```

WPA2 pre-shared key for use with soft access point (requires`preSharedKey`to be specified).  

    Value: 4

### WPA_EAP

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

```
static val WPA_EAP: Int
```

WPA using EAP authentication. Generally used with an external authentication server.  

    Value: 2

### WPA_EAP_SHA256

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

```
static val WPA_EAP_SHA256: Int
```

WPA using EAP authentication with stronger SHA256-based algorithms.  

    Value: 12

### WPA_PSK

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

```
static val WPA_PSK: Int
```

WPA pre-shared key (requires`preSharedKey`to be specified).  

    Value: 1

### WPA_PSK_SHA256

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

```
static val WPA_PSK_SHA256: Int
```

WPA pre-shared key with stronger SHA256-based algorithms.  

    Value: 11

### varName

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

```
static val varName: String
```  

    Value: "key_mgmt"

## Properties

### strings

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

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