Package: android.hardware.wifi.supplicant@1.1

ISupplicantStaNetwork

interface ISupplicantStaNetwork extends @1.0::ISupplicantStaNetwork

Interface exposed by the supplicant for each station mode network configuration it controls.

Properties

EapSimIdentity

typedef vec EapSimIdentity

EAP IMSI Identity to be used for authentication to EAP SIM networks.The identity must be derived from the IMSI retrieved from the SIM card.

See RFC4186 & RFC4187 & RFC5448 for EAP SIM protocols.

Identity string is built from IMSI.Format is:eapPrefix | IMSI | '@' | realm where:- "|" denotes concatenation - realm is the 3GPP network domain name derived from the given MCC/MNC according to the 3GGP spec(TS23.003)

eapPrefix value:'0' - EAP-AKA Identity '1' - EAP-SIM Identity '6' - EAP-AKA-PRIME Identity

EapSimEncryptedIdentity

typedef vec EapSimEncryptedIdentity

Encrypted EAP IMSI Identity to be used for authentication to EAP SIM networks which supports encrypted IMSI.The identity must be derived from the IMSI retrieved from the SIM card.This identity is then encrypted using the public key of the carrier.

See RFC4186 & RFC4187 & RFC5448 for EAP SIM protocols.See section 7.1 of RFC 2437 for RSA-OAEP encryption scheme.

Identity string is built from encrypted IMSI.Format is:'0' | Base64{RSA-OAEP-SHA-256(eapPrefix | IMSI)} | '@' | realm |{', ' Key Identifier}where:- "|" denotes concatenation - "{} " denotes an optional value - realm is the 3GPP network domain name derived from the given MCC/MNC according to the 3GGP spec(TS23.003)- Key Identifier is a null-terminated string of the form "<Key >=<Value>"

Methods

setEapEncryptedImsiIdentity

setEapEncryptedImsiIdentity (EapSimEncryptedIdentity identity)
generates (SupplicantStatus status)

Set EAP encrypted IMSI Identity for this network.

Details
Parameters
identity
Identity string built from the encrypted IMSI.
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantStatusCode.FAILURE_ARGS_INVALID|, |SupplicantStatusCode.FAILURE_UNKNOWN|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|

sendNetworkEapIdentityResponse_1_1

sendNetworkEapIdentityResponse_1_1 (EapSimIdentity identity, EapSimEncryptedIdentity encryptedIdentity)
generates (SupplicantStatus status)

Used to send a response to the |ISupplicantNetworkCallback.onNetworkEapIdentityRequest| request.

Details
Parameters
identity
Identity string containing the IMSI.
encryptedIdentity
Identity string containing the encrypted IMSI.
Generates
status
Status of the operation.Possible status codes:|SupplicantStatusCode.SUCCESS|, |SupplicantStatusCode.FAILURE_UNKNOWN|, |SupplicantStatusCode.FAILURE_NETWORK_INVALID|