# WifiConfiguration.AuthAlgorithm

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

# AuthAlgorithm

*** ** * ** ***

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

```
open class AuthAlgorithm
```

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

Recognized IEEE 802.11 authentication algorithms.

## Summary

|                                                                                                                                Constants                                                                                                                                 ||
|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [LEAP](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.AuthAlgorithm#LEAP:kotlin.Int) LEAP/Network EAP (only used with LEAP)                   |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [OPEN](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.AuthAlgorithm#OPEN:kotlin.Int) Open System authentication (required for WPA/WPA2)       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [SAE](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.AuthAlgorithm#SAE:kotlin.Int) SAE (Used only for WPA3-Personal)                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [SHARED](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.AuthAlgorithm#SHARED:kotlin.Int) Shared Key authentication (requires static WEP keys) |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [varName](https://developer.android.com/reference/kotlin/android/net/wifi/WifiConfiguration.AuthAlgorithm#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.AuthAlgorithm#strings:kotlin.Array) <br /> |

## Constants

### LEAP

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

```
static val LEAP: Int
```

LEAP/Network EAP (only used with LEAP)  

    Value: 2

### OPEN

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

```
static val OPEN: Int
```

Open System authentication (required for WPA/WPA2)  

    Value: 0

### SAE

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

```
static val SAE: Int
```

SAE (Used only for WPA3-Personal)  

    Value: 3

### SHARED

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 SHARED: Int
```

**Deprecated:** *Due to security and performance limitations, use of WEP networks is discouraged.*

Shared Key authentication (requires static WEP keys)  

    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: "auth_alg"

## Properties

### strings

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

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