Lenguaje

TelephonyManager.GetIccAuthentication Método

Definición

Devuelve la respuesta de autenticación de la suscripción predeterminada.

[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

Parámetros

appType
UiccApplicationType

el tipo de solicitud icc, como #APPTYPE_USIM

authType
AutheenticationType

el tipo de autenticación, cualquiera de #AUTHTYPE_EAP_AKA o #AUTHTYPE_EAP_SIM o #AUTHTYPE_GBA_BOOTSTRAP#AUTHTYPE_GBA_NAF_KEY_EXTERNAL

data
String

datos de desafío de autenticación, codificados en base64. Consulte 3GPP TS 31.102 7.1.2 para obtener más detalles.

Devoluciones

la respuesta de la autenticación. Este valor será null en los siguientes casos: error de autenticación, error de autenticación incorrecta de MAC, contexto de seguridad no compatible Error de autenticación de actualización de claves, error de autenticación sin espacio de memoria disponible, sin espacio de memoria disponible en EFMUK

Atributos

Comentarios

Devuelve la respuesta de autenticación de la suscripción predeterminada. Devuelve null si la autenticación no se ha realizado correctamente

Requiere uno de los permisos siguientes: <ul><li>la aplicación que realiza la llamada tiene privilegios de operador (consulte #hasCarrierPrivileges). <li>la aplicación que realiza la llamada se le ha concedido el Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER permiso. </ul>

El uso de Manifest.permission#READ_PRIVILEGED_PHONE_STATE está en desuso. Use Manifest.permission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER en su lugar.

@param appType el tipo de aplicación icc, como {@link #APPTYPE_USIM

Java documentación para android.telephony.TelephonyManager.getIccAuthentication(int, int, java.lang.String).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a