语言

TelephonyManager.GetIccAuthentication 方法

定义

返回默认订阅的身份验证响应。

[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

参数

appType
UiccApplicationType

icc 应用程序类型,例如 #APPTYPE_USIM

authType
AutheenticationType

身份验证类型、任一身份验证#AUTHTYPE_EAP_AKA类型或#AUTHTYPE_EAP_SIM#AUTHTYPE_GBA_BOOTSTRAP或#AUTHTYPE_GBA_NAF_KEY_EXTERNAL

data
String

身份验证质询数据,base64 编码。 有关更多详细信息,请参阅 3GPP TS 31.102 7.1.2。

返回

身份验证的响应。 在以下情况下,此值将为 null:身份验证错误、MAC 身份验证错误、安全上下文不支持密钥新鲜度失败身份验证错误、无内存空间可用身份验证错误、EFMUK 中没有可用内存空间

特性

注解

返回默认订阅的身份验证响应。 如果身份验证未成功,则返回 null

需要以下权限之一:<调用>><应用具有运营商权限(请参阅)。#hasCarrierPrivileges <li>调用应用已被授予 Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER 权限。 </ul>

已弃用。Manifest.permission#READ_PRIVILEGED_PHONE_STATE 改用 Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER。

Java文档android.telephony.TelephonyManager.getIccAuthentication(int, int, java.lang.String)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于