# IkeSessionParams.IkeAuthEapConfig

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

# IkeAuthEapConfig

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/net/ipsec/ike/IkeSessionParams.IkeAuthEapConfig "View this page in Java")  

```
class IkeAuthEapConfig : IkeSessionParams.IkeAuthConfig
```

|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                        |||
| ↳ | [android.net.ipsec.ike.IkeSessionParams.IkeAuthConfig](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeSessionParams.IkeAuthConfig)           ||
|   | ↳ | [android.net.ipsec.ike.IkeSessionParams.IkeAuthEapConfig](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeSessionParams.IkeAuthEapConfig#) |

This class represents the configuration to support EAP authentication of the local side.

@see[IkeSessionParams.Builder.setAuthEap(X509Certificate, EapSessionConfig)](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeSessionParams.Builder#setAuthEap(java.security.cert.X509Certificate,%20android.net.eap.EapSessionConfig))

## Summary

|                                                                                                                                                                   Public methods                                                                                                                                                                    ||
|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                        | [equals](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeSessionParams.IkeAuthEapConfig#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` <br /> |
| open[EapSessionConfig](https://developer.android.com/reference/kotlin/android/net/eap/EapSessionConfig.html#) | [getEapConfig](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeSessionParams.IkeAuthEapConfig#getEapConfig())`()` Retrieves EAP configuration                                                                |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                | [hashCode](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeSessionParams.IkeAuthEapConfig#hashCode())`()` <br />                                                                                             |

## Public methods

### equals

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

```
open fun equals(other: Any?): Boolean
```

|                     Parameters                     ||
|-------|---------------------------------------------|
| `obj` | the reference object with which to compare. |

|                                                                           Return                                                                           ||
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true`if this object is the same as the obj argument;`false`otherwise. |

### getEapConfig

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

```
open fun getEapConfig(): EapSessionConfig
```

Retrieves EAP configuration

|                                                                 Return                                                                 ||
|-----------------------------------------------------------------------------------------------------------|-----------------------------|
| [EapSessionConfig](https://developer.android.com/reference/kotlin/android/net/eap/EapSessionConfig.html#) | This value cannot be`null`. |

### hashCode

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

```
open fun hashCode(): Int
```

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |