TelephonyManager.GetIccAuthentication 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳預設訂閱的認證回應。
[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。
傳回
認證的回應。 此值在以下情況下為空:認證錯誤、錯誤 MAC 認證錯誤、不支援安全情境 金鑰新鮮度失敗 認證錯誤、無記憶體空間 認證錯誤、EFMUK 中無記憶體空間
- 屬性
備註
回傳預設訂閱的認證回應。 如果認證失敗,則會回傳 null
需要以下其中一項權限:<ul<>li>通話應用程式擁有運營商權限(參見#hasCarrierPrivileges)。
<Li>The Calling App 已經獲得 Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER 授權。
</ul>
已不再使用。Manifest.permission#READ_PRIVILEGED_PHONE_STATE 改用 Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER。
@param appType 是 icc 應用程式類型,例如 {@link #APPTYPE_USIM
Java 文件 android.telephony.TelephonyManager.getIccAuthentication(int, int, java.lang.String)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。