Added in API level 31

EapMsChapV2Config


class EapMsChapV2Config : EapSessionConfig.EapMethodConfig

EapMsChapV2Config represents the configs needed for an EAP MSCHAPv2 session.

Summary

Inherited constants
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

Inherited functions
Int getMethodType()

Retrieves the EAP method type

Public methods

getPassword

Added in API level 31
open fun getPassword(): String

Retrieves the password

Return
String the password to be used by MSCHAPV2 This value cannot be null.

getUsername

Added in API level 31
open fun getUsername(): String

Retrieves the username

Return
String the username to be used by MSCHAPV2 This value cannot be null.