Stay organized with collections
Save and categorize content based on your preferences.
EapMsChapV2Config
class EapMsChapV2Config : EapSessionConfig.EapMethodConfig
EapMsChapV2Config represents the configs needed for an EAP MSCHAPv2 session.
Summary
Inherited constants |
From class EapMethodConfig
Int |
EAP_TYPE_AKA
EAP-Type value for the EAP-AKA method.
To include EAP-AKA as an authentication method, see android.net.eap.EapSessionConfig.Builder#setEapAkaConfig(int,int) .
|
Int |
EAP_TYPE_AKA_PRIME
EAP-Type value for the EAP-AKA' method.
To include EAP-AKA' as an authentication method, see android.net.eap.EapSessionConfig.Builder#setEapAkaPrimeConfig(int,int,java.lang.String,boolean) .
|
Int |
EAP_TYPE_MSCHAP_V2
EAP-Type value for the EAP-MS-CHAPv2 method.
To include EAP-MS-CHAPv2 as an authentication method, see android.net.eap.EapSessionConfig.Builder#setEapMsChapV2Config(java.lang.String,java.lang.String) .
|
Int |
EAP_TYPE_SIM
EAP-Type value for the EAP-SIM method.
To include EAP-SIM as an authentication method, see android.net.eap.EapSessionConfig.Builder#setEapSimConfig(int,int) .
|
Int |
EAP_TYPE_TTLS
EAP-Type value for the EAP-TTLS method.
To include EAP-TTLS as an authentication method, see android.net.eap.EapSessionConfig.Builder#setEapTtlsConfig(java.security.cert.X509Certificate,android.net.eap.EapSessionConfig) .
|
|
Public methods |
open String |
Retrieves the password
|
open String |
Retrieves the username
|
Public methods
getPassword
open fun getPassword(): String
Retrieves the password
Return |
String |
the password to be used by MSCHAPV2 This value cannot be null . |
getUsername
open fun getUsername(): String
Retrieves the username
Return |
String |
the username to be used by MSCHAPV2 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.EapMsChapV2Config\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEapMsChapV2Config\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/eap/EapSessionConfig.EapMsChapV2Config \"View this page in Java\") \n\n```\nclass EapMsChapV2Config : EapSessionConfig.EapMethodConfig\n```\n\n|---|---|---------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [android.net.eap.EapSessionConfig.EapMethodConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig) ||\n| | ↳ | [android.net.eap.EapSessionConfig.EapMsChapV2Config](#) |\n\nEapMsChapV2Config represents the configs needed for an EAP MSCHAPv2 session.\n\nSummary\n-------\n\n| Inherited constants ||\n|---|---|\n| From class [EapMethodConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [EAP_TYPE_AKA](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig#EAP_TYPE_AKA:kotlin.Int) EAP-Type value for the EAP-AKA method. To include EAP-AKA as an authentication method, see [android.net.eap.EapSessionConfig.Builder#setEapAkaConfig(int,int)](/reference/kotlin/android/net/eap/EapSessionConfig.Builder#setEapAkaConfig(kotlin.Int,%20kotlin.Int)). \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [EAP_TYPE_AKA_PRIME](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig#EAP_TYPE_AKA_PRIME:kotlin.Int) EAP-Type value for the EAP-AKA' method. To include EAP-AKA' as an authentication method, see [android.net.eap.EapSessionConfig.Builder#setEapAkaPrimeConfig(int,int,java.lang.String,boolean)](/reference/kotlin/android/net/eap/EapSessionConfig.Builder#setEapAkaPrimeConfig(kotlin.Int,%20kotlin.Int,%20kotlin.String,%20kotlin.Boolean)). \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [EAP_TYPE_MSCHAP_V2](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig#EAP_TYPE_MSCHAP_V2:kotlin.Int) EAP-Type value for the EAP-MS-CHAPv2 method. To include EAP-MS-CHAPv2 as an authentication method, see [android.net.eap.EapSessionConfig.Builder#setEapMsChapV2Config(java.lang.String,java.lang.String)](/reference/kotlin/android/net/eap/EapSessionConfig.Builder#setEapMsChapV2Config(kotlin.String,%20kotlin.String)). \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [EAP_TYPE_SIM](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig#EAP_TYPE_SIM:kotlin.Int) EAP-Type value for the EAP-SIM method. To include EAP-SIM as an authentication method, see [android.net.eap.EapSessionConfig.Builder#setEapSimConfig(int,int)](/reference/kotlin/android/net/eap/EapSessionConfig.Builder#setEapSimConfig(kotlin.Int,%20kotlin.Int)). \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [EAP_TYPE_TTLS](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig#EAP_TYPE_TTLS:kotlin.Int) EAP-Type value for the EAP-TTLS method. To include EAP-TTLS as an authentication method, see [android.net.eap.EapSessionConfig.Builder#setEapTtlsConfig(java.security.cert.X509Certificate,android.net.eap.EapSessionConfig)](/reference/kotlin/android/net/eap/EapSessionConfig.Builder#setEapTtlsConfig(java.security.cert.X509Certificate,%20android.net.eap.EapSessionConfig)). \u003cbr /\u003e | ||\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getPassword](#getPassword())`()` Retrieves the password |\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getUsername](#getUsername())`()` Retrieves the username |\n\n| Inherited functions ||\n|---|---|\n| From class [EapMethodConfig](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig) |----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getMethodType](/reference/kotlin/android/net/eap/EapSessionConfig.EapMethodConfig#getMethodType())`()` Retrieves the EAP method type \u003cbr /\u003e | ||\n\nPublic methods\n--------------\n\n### getPassword\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getPassword(): String\n```\n\nRetrieves the password\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | the password to be used by MSCHAPV2 This value cannot be `null`. |\n\n### getUsername\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getUsername(): String\n```\n\nRetrieves the username\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | the username to be used by MSCHAPV2 This value cannot be `null`. |"]]