diff options
| author | 2022-11-17 08:59:57 +0000 | |
|---|---|---|
| committer | 2022-11-17 08:59:57 +0000 | |
| commit | 333d11a2bc38301dd990665abd892507e9bb743d (patch) | |
| tree | c630ce4c6630442db54ccaaf9008b9070ec03f79 | |
| parent | b6d85cd980464e50421ef33c96e586c5c12d91d2 (diff) | |
| parent | 083710990bcf4c12d2f9b459013eb72990abcc9e (diff) | |
Merge "Telephony GBA_U Authentication"
| -rw-r--r-- | core/api/current.txt | 2 | ||||
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 27 |
2 files changed, 20 insertions, 9 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 1c9b6c3a5fe5..dabb8b610c6e 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -44040,6 +44040,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 diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 73551b9441fc..73aceba266e7 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -8298,16 +8298,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; @@ -8336,7 +8343,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: @@ -8364,7 +8372,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 |