Stay organized with collections
Save and categorize content based on your preferences.
EapSessionConfig
class EapSessionConfig
EapSessionConfig represents a container for EAP method configuration.
The EAP authentication server decides which EAP method is used, so clients are encouraged to provide configs for several EAP methods.
Summary
Nested classes |
|
This class can be used to incrementally construct an EapSessionConfig .
|
|
EapAkaConfig represents the configs needed for an EAP AKA session.
|
|
EapAkaOption represents optional configurations for EAP AKA authentication.
|
|
EapAkaPrimeConfig represents the configs needed for an EAP-AKA' session.
|
abstract |
EapMethodConfig represents a generic EAP method configuration.
|
|
EapMsChapV2Config represents the configs needed for an EAP MSCHAPv2 session.
|
|
EapSimConfig represents the configs needed for an EAP SIM session.
|
|
EapTtlsConfig represents the configs needed for an EAP-TTLS session.
|
Public methods
getEapIdentity
fun getEapIdentity(): ByteArray
Retrieves client's EAP Identity
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\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEapSessionConfig\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/eap/EapSessionConfig \"View this page in Java\") \n\n```\nclass EapSessionConfig\n```\n\n|---|---------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.net.eap.EapSessionConfig](#) |\n\nEapSessionConfig represents a container for EAP method configuration.\n\nThe EAP authentication server decides which EAP method is used, so clients are encouraged to provide configs for several EAP methods.\n\nSummary\n-------\n\n| Nested classes ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/net/eap/EapSessionConfig.Builder) This class can be used to incrementally construct an [EapSessionConfig](#). |\n| | [EapAkaConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaConfig) EapAkaConfig represents the configs needed for an EAP AKA session. |\n| | [EapAkaOption](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaOption) EapAkaOption represents optional configurations for EAP AKA authentication. |\n| | [EapAkaPrimeConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaPrimeConfig) EapAkaPrimeConfig represents the configs needed for an EAP-AKA' session. |\n| abstract | [EapMethodConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig) EapMethodConfig represents a generic EAP method configuration. |\n| | [EapMsChapV2Config](/reference/kotlin/android/net/eap/EapSessionConfig.EapMsChapV2Config) EapMsChapV2Config represents the configs needed for an EAP MSCHAPv2 session. |\n| | [EapSimConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapSimConfig) EapSimConfig represents the configs needed for an EAP SIM session. |\n| | [EapTtlsConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapTtlsConfig) EapTtlsConfig represents the configs needed for an EAP-TTLS session. |\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|\n| [EapSessionConfig.EapAkaConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaConfig)? | [getEapAkaConfig](#getEapAkaConfig())`()` Retrieves configuration for EAP AKA |\n| [EapSessionConfig.EapAkaPrimeConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaPrimeConfig)? | [getEapAkaPrimeConfig](#getEapAkaPrimeConfig())`()` Retrieves configuration for EAP AKA' |\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | [getEapIdentity](#getEapIdentity())`()` Retrieves client's EAP Identity |\n| [EapSessionConfig.EapMsChapV2Config](/reference/kotlin/android/net/eap/EapSessionConfig.EapMsChapV2Config)? | [getEapMsChapV2Config](#getEapMsChapV2Config())`()` Retrieves configuration for EAP MSCHAPV2 |\n| [EapSessionConfig.EapSimConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapSimConfig)? | [getEapSimConfig](#getEapSimConfig())`()` Retrieves configuration for EAP SIM |\n| [EapSessionConfig.EapTtlsConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapTtlsConfig)? | [getEapTtlsConfig](#getEapTtlsConfig())`()` Retrieves configuration for EAP-TTLS |\n\nPublic methods\n--------------\n\n### getEapAkaConfig\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getEapAkaConfig(): EapSessionConfig.EapAkaConfig?\n```\n\nRetrieves configuration for EAP AKA\n\n| Return ||\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------|\n| [EapSessionConfig.EapAkaConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaConfig)? | the configuration for EAP AKA, or null if it was not set |\n\n### getEapAkaPrimeConfig\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getEapAkaPrimeConfig(): EapSessionConfig.EapAkaPrimeConfig?\n```\n\nRetrieves configuration for EAP AKA'\n\n| Return ||\n|-------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [EapSessionConfig.EapAkaPrimeConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapAkaPrimeConfig)? | the configuration for EAP AKA', or null if it was not set |\n\n### getEapIdentity\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getEapIdentity(): ByteArray\n```\n\nRetrieves client's EAP Identity\n\n| Return ||\n|-----------------------------------------------------------------------------------------|------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | This value cannot be `null`. |\n\n### getEapMsChapV2Config\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getEapMsChapV2Config(): EapSessionConfig.EapMsChapV2Config?\n```\n\nRetrieves configuration for EAP MSCHAPV2\n\n| Return ||\n|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| [EapSessionConfig.EapMsChapV2Config](/reference/kotlin/android/net/eap/EapSessionConfig.EapMsChapV2Config)? | the configuration for EAP MSCHAPV2, or null if it was not set |\n\n### getEapSimConfig\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getEapSimConfig(): EapSessionConfig.EapSimConfig?\n```\n\nRetrieves configuration for EAP SIM\n\n| Return ||\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------|\n| [EapSessionConfig.EapSimConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapSimConfig)? | the configuration for EAP SIM, or null if it was not set |\n\n### getEapTtlsConfig\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getEapTtlsConfig(): EapSessionConfig.EapTtlsConfig?\n```\n\nRetrieves configuration for EAP-TTLS\n\n| Return ||\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [EapSessionConfig.EapTtlsConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapTtlsConfig)? | the configuration for EAP-TTLS, or null if it was not set |"]]