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/EapSessionConfig.EapAkaOption.Builder "View this page in Java")

```
class Builder
```

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

This class can be used to incrementally construct an `https://developer.android.com/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaOption`.

## Summary

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

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

## 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(): EapSessionConfig.EapAkaOption
```

Constructs and returns an EapAkaOption with the configurations applied to this Builder.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaOption` | the EapAkaOption 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): EapSessionConfig.EapAkaOption.Builder
```

Set fast re-authentication ID

If keys are found matching the combination of reauthId and permanent ID, re-authentication will be attempted.

Permanent ID MUST be set in setEapIdentity

Upon session establishment, new re-authentication IDs will be listed in the EapAkaInfo returned as part of IkeSessionCallback#onOpened().

Reauthentication is generally considered less secure, as it does not prove the existence of the full credentials, and should be used only when a strong correlation can be provided to the full authentication (eg shared keys from previous authentication runs)

| Parameters ||
|---|---|
| `reauthId` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html): re-authentication ID encoded with UTF-8. This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaOption.Builder#` | Builder this, to facilitate chaining. This value cannot be `null`. |

**See Also**