Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
This class can be used to incrementally construct an EapAkaOption
.
Summary
Public constructors
Public methods
setReauthId
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: re-authentication ID encoded with UTF-8 This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# EapSessionConfig.EapAkaOption.Builder\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/eap/EapSessionConfig.EapAkaOption.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.eap.EapSessionConfig.EapAkaOption.Builder](#) |\n\nThis class can be used to incrementally construct an [EapAkaOption](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaOption).\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [EapSessionConfig.EapAkaOption](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaOption) | [build](#build())`()` Constructs and returns an EapAkaOption with the configurations applied to this Builder. |\n| [EapSessionConfig.EapAkaOption.Builder](#) | [setReauthId](#setReauthId(kotlin.ByteArray))`(`reauthId:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` Set fast re-authentication ID |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): EapSessionConfig.EapAkaOption\n```\n\nConstructs and returns an EapAkaOption with the configurations applied to this Builder.\n\n| Return ||\n|--------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| [EapSessionConfig.EapAkaOption](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaOption) | the EapAkaOption constructed by this Builder. This value cannot be `null`. |\n\n### setReauthId\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setReauthId(reauthId: ByteArray): EapSessionConfig.EapAkaOption.Builder\n```\n\nSet fast re-authentication ID\n\nIf keys are found matching the combination of reauthId and permanent ID, re-authentication will be attempted.\n\nPermanent ID MUST be set in setEapIdentity\n\nUpon session establishment, new re-authentication IDs will be listed in the EapAkaInfo returned as part of IkeSessionCallback#onOpened().\n\nReauthentication 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)\n\n| Parameters ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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`. |\n\n| Return ||\n|--------------------------------------------|--------------------------------------------------------------------|\n| [EapSessionConfig.EapAkaOption.Builder](#) | Builder this, to facilitate chaining. This value cannot be `null`. |\n\n**See Also**"]]