Telephony GBA_U Authentication
Extend getIccAuthentication() API to support GBA-U bootstrapping parameters and NAF key from SIM for both USIM and ISIM. Bug: 230751577 Test: `atest android.telephony.cts.TelephonyManagerTest#testTelephonyManager` pass on crosshatch Change-Id: Ia764135f52ed9ec31325c5454b17166eeba60ff5
This commit is contained in:
@@ -43587,6 +43587,8 @@ package android.telephony {
|
||||
field public static final int APPTYPE_USIM = 2; // 0x2
|
||||
field public static final int AUTHTYPE_EAP_AKA = 129; // 0x81
|
||||
field public static final int AUTHTYPE_EAP_SIM = 128; // 0x80
|
||||
field public static final int AUTHTYPE_GBA_BOOTSTRAP = 132; // 0x84
|
||||
field public static final int AUTHTYPE_GBA_NAF_KEY_EXTERNAL = 133; // 0x85
|
||||
field public static final int CALL_COMPOSER_STATUS_OFF = 0; // 0x0
|
||||
field public static final int CALL_COMPOSER_STATUS_ON = 1; // 0x1
|
||||
field public static final int CALL_STATE_IDLE = 0; // 0x0
|
||||
|
||||
@@ -8245,16 +8245,23 @@ public class TelephonyManager {
|
||||
/** Authentication type for UICC challenge is EAP AKA. See RFC 4187 for details. */
|
||||
public static final int AUTHTYPE_EAP_AKA = PhoneConstants.AUTH_CONTEXT_EAP_AKA;
|
||||
/**
|
||||
* Authentication type for GBA Bootstrap Challenge is GBA_BOOTSTRAP.
|
||||
* See 3GPP 33.220 Section 5.3.2.
|
||||
* @hide
|
||||
* Authentication type for GBA Bootstrap Challenge.
|
||||
* Pass this authentication type into the {@link #getIccAuthentication} API to perform a GBA
|
||||
* Bootstrap challenge (BSF), with {@code data} (generated according to the procedure defined in
|
||||
* 3GPP 33.220 Section 5.3.2 step.4) in base64 encoding.
|
||||
* This method will return the Bootstrapping response in base64 encoding when ICC authentication
|
||||
* is completed.
|
||||
* Ref 3GPP 33.220 Section 5.3.2.
|
||||
*/
|
||||
public static final int AUTHTYPE_GBA_BOOTSTRAP = PhoneConstants.AUTH_CONTEXT_GBA_BOOTSTRAP;
|
||||
/**
|
||||
* Authentication type for GBA Network Application Functions (NAF) key
|
||||
* External Challenge is AUTHTYPE_GBA_NAF_KEY_EXTERNAL.
|
||||
* See 3GPP 33.220 Section 5.3.2.
|
||||
* @hide
|
||||
* Authentication type for GBA Network Application Functions (NAF) key External Challenge.
|
||||
* Pass this authentication type into the {@link #getIccAuthentication} API to perform a GBA
|
||||
* Network Applications Functions (NAF) key External challenge using the NAF_ID parameter
|
||||
* as the {@code data} in base64 encoding.
|
||||
* This method will return the Ks_Ext_Naf key in base64 encoding when ICC authentication
|
||||
* is completed.
|
||||
* Ref 3GPP 33.220 Section 5.3.2.
|
||||
*/
|
||||
public static final int AUTHTYPE_GBA_NAF_KEY_EXTERNAL =
|
||||
PhoneConstants.AUTHTYPE_GBA_NAF_KEY_EXTERNAL;
|
||||
@@ -8283,7 +8290,8 @@ public class TelephonyManager {
|
||||
*
|
||||
* @param appType the icc application type, like {@link #APPTYPE_USIM}
|
||||
* @param authType the authentication type, any one of {@link #AUTHTYPE_EAP_AKA} or
|
||||
* {@link #AUTHTYPE_EAP_SIM}
|
||||
* {@link #AUTHTYPE_EAP_SIM} or {@link #AUTHTYPE_GBA_BOOTSTRAP} or
|
||||
* {@link #AUTHTYPE_GBA_NAF_KEY_EXTERNAL}
|
||||
* @param data authentication challenge data, base64 encoded.
|
||||
* See 3GPP TS 31.102 7.1.2 for more details.
|
||||
* @return the response of authentication. This value will be null in the following cases:
|
||||
@@ -8311,7 +8319,8 @@ public class TelephonyManager {
|
||||
* @param subId subscription ID used for authentication
|
||||
* @param appType the icc application type, like {@link #APPTYPE_USIM}
|
||||
* @param authType the authentication type, any one of {@link #AUTHTYPE_EAP_AKA} or
|
||||
* {@link #AUTHTYPE_EAP_SIM}
|
||||
* {@link #AUTHTYPE_EAP_SIM} or {@link #AUTHTYPE_GBA_BOOTSTRAP} or
|
||||
* {@link #AUTHTYPE_GBA_NAF_KEY_EXTERNAL}
|
||||
* @param data authentication challenge data, base64 encoded.
|
||||
* See 3GPP TS 31.102 7.1.2 for more details.
|
||||
* @return the response of authentication. This value will be null in the following cases only
|
||||
|
||||
Reference in New Issue
Block a user