# WifiConfiguration.PairwiseCipher

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

# PairwiseCipher

*** ** * ** ***

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

```
open class PairwiseCipher
```

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

Recognized pairwise ciphers for WPA.

## Summary

|                                                                                                                                    Constants                                                                                                                                     ||
|----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CCMP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.PairwiseCipher#CCMP:kotlin.Int) AES in Counter mode with CBC-MAC \[RFC 3610, IEEE 802.          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [GCMP_128](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.PairwiseCipher#GCMP_128:kotlin.Int) AES in Galois/Counter Mode with a 128-bit integrity key |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [GCMP_256](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.PairwiseCipher#GCMP_256:kotlin.Int) AES in Galois/Counter Mode                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [NONE](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.PairwiseCipher#NONE:kotlin.Int) Use only Group keys (deprecated)                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [SMS4](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.PairwiseCipher#SMS4:kotlin.Int) SMS4 cipher for WAPI                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [TKIP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.PairwiseCipher#TKIP:kotlin.Int) Temporal Key Integrity Protocol \[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.PairwiseCipher#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.PairwiseCipher#strings:kotlin.Array) <br /> |

## Constants

### CCMP

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

```
static val CCMP: Int
```

AES in Counter mode with CBC-MAC \[RFC 3610, IEEE 802.11i/D7.0\]  

    Value: 2

### GCMP_128

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

```
static val GCMP_128: Int
```

AES in Galois/Counter Mode with a 128-bit integrity key  

    Value: 5

### GCMP_256

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

```
static val GCMP_256: Int
```

AES in Galois/Counter Mode  

    Value: 3

### NONE

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

```
static val NONE: Int
```

Use only Group keys (deprecated)  

    Value: 0

### SMS4

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

```
static val SMS4: Int
```

SMS4 cipher for WAPI  

    Value: 4

### TKIP

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

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

```
static val varName: String
```  

    Value: "pairwise"

## Properties

### strings

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

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