TelephonyManager.GetIccAuthentication Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the response of authentication for the default subscription.
[Android.Runtime.Register("getIccAuthentication", "(IILjava/lang/String;)Ljava/lang/String;", "GetGetIccAuthentication_IILjava_lang_String_Handler", ApiSince=24)]
public virtual string? GetIccAuthentication (Android.Telephony.UiccApplicationType appType, Android.Telephony.AutheenticationType authType, string? data);
[<Android.Runtime.Register("getIccAuthentication", "(IILjava/lang/String;)Ljava/lang/String;", "GetGetIccAuthentication_IILjava_lang_String_Handler", ApiSince=24)>]
abstract member GetIccAuthentication : Android.Telephony.UiccApplicationType * Android.Telephony.AutheenticationType * string -> string
override this.GetIccAuthentication : Android.Telephony.UiccApplicationType * Android.Telephony.AutheenticationType * string -> string
Parameters
- appType
- UiccApplicationType
the icc application type, like #APPTYPE_USIM
- authType
- AutheenticationType
the authentication type, any one of #AUTHTYPE_EAP_AKA
or
#AUTHTYPE_EAP_SIM
or #AUTHTYPE_GBA_BOOTSTRAP
or
#AUTHTYPE_GBA_NAF_KEY_EXTERNAL
- data
- String
authentication challenge data, base64 encoded. See 3GPP TS 31.102 7.1.2 for more details.
Returns
the response of authentication. This value will be null in the following cases: Authentication error, incorrect MAC Authentication error, security context not supported Key freshness failure Authentication error, no memory space available Authentication error, no memory space available in EFMUK
- Attributes
Remarks
Returns the response of authentication for the default subscription. Returns null if the authentication hasn't been successful
Requires one of the following permissions: <ul> <li>READ_PRIVILEGED_PHONE_STATE <li>the calling app has carrier privileges (see #hasCarrierPrivileges
). <li>the calling app has been granted the Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER
permission. </ul>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.