# EapAkaInfo.Builder

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

# Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/net/eap/EapAkaInfo.Builder "View this page in Java")  

```
class Builder
```

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

This class can be used to incrementally construct an[EapAkaInfo](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo).

Except for testing, IKE library users normally do not instantiate[EapAkaInfo](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo)themselves but instead get a reference via[IkeSessionConfiguration](https://developer.android.com/reference/kotlin/android/net/ipsec/ike/IkeSessionConfiguration.html#)

## Summary

|                                                 Public constructors                                                  ||
|-------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo.Builder#Builder())`()` <br /> |

|                                                                                                                                                                                        Public methods                                                                                                                                                                                         ||
|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [EapAkaInfo](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo)                  | [build](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo.Builder#build())`()` Constructs and returns an EapAkaInfo with the information applied to this Builder.                                                                                           |
| [EapAkaInfo.Builder](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo.Builder#) | [setReauthId](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo.Builder#setReauthId(kotlin.ByteArray))`(`reauthId:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` Sets the re-authentication ID for next use. |

## Public constructors

### Builder

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

```
Builder()
```

## Public methods

### build

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

```
fun build(): EapAkaInfo
```

Constructs and returns an EapAkaInfo with the information applied to this Builder.

|                                                                              Return                                                                              ||
|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------|
| [EapAkaInfo](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo) | the EapAkaInfo constructed by this Builder. This value cannot be`null`. |

### setReauthId

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

```
fun setReauthId(reauthId: ByteArray): EapAkaInfo.Builder
```

Sets the re-authentication ID for next use.

|                                                                                    Parameters                                                                                    ||
|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `reauthId` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html):byte\[\] representing the client's EAP Identity. This value cannot be`null`. |

|                                                                                   Return                                                                                    ||
|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------|
| [EapAkaInfo.Builder](https://developer.android.com/reference/kotlin/android/net/eap/EapAkaInfo.Builder#) | Builder this, to facilitate chaining. This value cannot be`null`. |