TelephonyManager.GetIccAuthentication Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne la réponse de l’authentification pour l’abonnement par défaut.
[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
Paramètres
- appType
- UiccApplicationType
type d’application icc, comme #APPTYPE_USIM
- authType
- AutheenticationType
le type d’authentification, l’un ou l’autre #AUTHTYPE_EAP_AKA ou #AUTHTYPE_EAP_SIM#AUTHTYPE_GBA_BOOTSTRAP#AUTHTYPE_GBA_NAF_KEY_EXTERNAL
- data
- String
données de défi d’authentification, encodées en base64. Pour plus d’informations, consultez 3GPP TS 31.102 7.1.2.
Retours
réponse de l’authentification. Cette valeur est null dans les cas suivants : erreur d’authentification, erreur d’authentification MAC incorrecte, contexte de sécurité non pris en charge Erreur d’authentification de l’échec de l’actualisation de la clé, aucune erreur d’authentification disponible en mémoire, aucun espace mémoire disponible dans EFMUK
- Attributs
Remarques
Retourne la réponse de l’authentification pour l’abonnement par défaut. Retourne null si l’authentification n’a pas réussi
Nécessite l’une des autorisations suivantes : <ul><li li>l’application appelante dispose de privilèges d’opérateur (voir #hasCarrierPrivileges).
<li>l’application appelante a reçu l’autorisation Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER .
</ul>
L’utilisation est Manifest.permission#READ_PRIVILEGED_PHONE_STATE déconseillée. Utilisez Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER à la place.
@param appType le type d’application icc, comme {@link #APPTYPE_USIM
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.