Home
last modified time | relevance | path

Searched refs:ServiceEntitlementException (Results 1 – 20 of 20) sorted by relevance

/frameworks/libs/gsma_services/ts43authentication/src/com/android/libraries/ts43authentication/
DAuthenticationException.java24 import com.android.libraries.entitlement.ServiceEntitlementException;
162 public AuthenticationException(ServiceEntitlementException exception) { in AuthenticationException()
196 case ServiceEntitlementException.ERROR_PHONE_NOT_AVAILABLE: in convertToAuthenticationError()
197 case ServiceEntitlementException.ERROR_SERVER_NOT_CONNECTABLE: in convertToAuthenticationError()
199 case ServiceEntitlementException.ERROR_ICC_AUTHENTICATION_NOT_AVAILABLE: in convertToAuthenticationError()
201 case ServiceEntitlementException.ERROR_EAP_AKA_SYNCHRONIZATION_FAILURE: in convertToAuthenticationError()
203 case ServiceEntitlementException.ERROR_EAP_AKA_FAILURE: in convertToAuthenticationError()
205 case ServiceEntitlementException.ERROR_HTTP_STATUS_NOT_SUCCESS: in convertToAuthenticationError()
207 case ServiceEntitlementException.ERROR_MALFORMED_HTTP_RESPONSE: in convertToAuthenticationError()
208 case ServiceEntitlementException.ERROR_TOKEN_NOT_AVAILABLE: in convertToAuthenticationError()
[all …]
DTs43AuthenticationLibrary.java36 import com.android.libraries.entitlement.ServiceEntitlementException;
536 } catch (ServiceEntitlementException exception) { in onRequestEapAkaAuthentication()
555 } catch (ServiceEntitlementException exception) { in onRequestOidcAuthenticationServer()
572 } catch (ServiceEntitlementException exception) { in onRequestOidcAuthentication()
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaChallengeTest.java27 import com.android.libraries.entitlement.ServiceEntitlementException;
140 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withoutRand()
150 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withoutAutn()
160 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withoutRandAndAutn()
170 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withCodeResponse()
180 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withWrongLength()
190 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withEapType99()
200 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withSubType99()
210 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withLengthOverData()
220 ServiceEntitlementException.class, in parseEapAkaChallengeRequest_withRandLength16()
[all …]
DEapAkaSecurityContextTest.java28 import com.android.libraries.entitlement.ServiceEntitlementException;
98 ServiceEntitlementException exception = in parseResponseData_invalidWithWrongTag_throwsException()
100 ServiceEntitlementException.class, in parseResponseData_invalidWithWrongTag_throwsException()
104 .isEqualTo(ServiceEntitlementException.ERROR_ICC_AUTHENTICATION_NOT_AVAILABLE); in parseResponseData_invalidWithWrongTag_throwsException()
117 ServiceEntitlementException.class, () -> EapAkaSecurityContext.from(encodedData)); in parseResponseData_invalidWithWrongResLength_throwsException()
126 ServiceEntitlementException.class, () -> EapAkaSecurityContext.from(encodedData)); in parseResponseData_invalidWithWrongCkLength_throwsException()
135 ServiceEntitlementException.class, () -> EapAkaSecurityContext.from(encodedData)); in parseResponseData_invalidWithWrongIkLength_throwsException()
DEapAkaApiTest.java47 import com.android.libraries.entitlement.ServiceEntitlementException;
321 ServiceEntitlementException exception = in queryEntitlementStatus_noAuthenticationToken_invalidChallenge()
323 ServiceEntitlementException.class, in queryEntitlementStatus_noAuthenticationToken_invalidChallenge()
331 .isEqualTo(ServiceEntitlementException.ERROR_MALFORMED_HTTP_RESPONSE); in queryEntitlementStatus_noAuthenticationToken_invalidChallenge()
459 ServiceEntitlementException exception = in queryEntitlementStatus_noAuthenticationToken_fourthChallenge_throwException()
461 ServiceEntitlementException.class, in queryEntitlementStatus_noAuthenticationToken_fourthChallenge_throwException()
469 .isEqualTo(ServiceEntitlementException.ERROR_EAP_AKA_FAILURE); in queryEntitlementStatus_noAuthenticationToken_fourthChallenge_throwException()
509 ServiceEntitlementException exception = in queryEntitlementStatus_noAuthenticationToken_emptyResponseBody_throwException()
511 ServiceEntitlementException.class, in queryEntitlementStatus_noAuthenticationToken_emptyResponseBody_throwException()
519 .isEqualTo(ServiceEntitlementException.ERROR_MALFORMED_HTTP_RESPONSE); in queryEntitlementStatus_noAuthenticationToken_emptyResponseBody_throwException()
[all …]
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/
DServiceEntitlementException.java27 public class ServiceEntitlementException extends Exception { class
115 public ServiceEntitlementException(int error, String message) { in ServiceEntitlementException() method in ServiceEntitlementException
119 public ServiceEntitlementException(int error, int httpStatus, String message) { in ServiceEntitlementException() method in ServiceEntitlementException
123 public ServiceEntitlementException( in ServiceEntitlementException() method in ServiceEntitlementException
131 public ServiceEntitlementException(int error, String message, Throwable cause) { in ServiceEntitlementException() method in ServiceEntitlementException
135 public ServiceEntitlementException(int error, int httpStatus, String message, Throwable cause) { in ServiceEntitlementException() method in ServiceEntitlementException
139 public ServiceEntitlementException( in ServiceEntitlementException() method in ServiceEntitlementException
DServiceEntitlement.java207 throws ServiceEntitlementException { in queryEntitlementStatus()
223 throws ServiceEntitlementException { in queryEntitlementStatus()
238 throws ServiceEntitlementException { in getEntitlementStatusResponse()
255 throws ServiceEntitlementException { in performEsimOdsa()
269 throws ServiceEntitlementException { in getEsimOdsaResponse()
286 throws ServiceEntitlementException { in acquireOidcAuthenticationEndpoint()
301 public String queryEntitlementStatusFromOidc(String url) throws ServiceEntitlementException { in queryEntitlementStatusFromOidc()
316 throws ServiceEntitlementException { in getEntitlementStatusResponseFromOidc()
DTs43Operation.java196 throws ServiceEntitlementException { in checkEligibility()
239 } catch (ServiceEntitlementException e) { in checkEligibility()
253 throw new ServiceEntitlementException( in checkEligibility()
254 ServiceEntitlementException.ERROR_MALFORMED_HTTP_RESPONSE, in checkEligibility()
358 throws ServiceEntitlementException { in manageSubscription()
425 } catch (ServiceEntitlementException e) { in manageSubscription()
439 throw new ServiceEntitlementException( in manageSubscription()
440 ServiceEntitlementException.ERROR_MALFORMED_HTTP_RESPONSE, in manageSubscription()
555 throws ServiceEntitlementException { in manageService()
592 } catch (ServiceEntitlementException e) { in manageService()
[all …]
DTs43Authentication.java171 throws ServiceEntitlementException { in getAuthToken()
223 } catch (ServiceEntitlementException e) { in getAuthToken()
235 throw new ServiceEntitlementException( in getAuthToken()
236 ServiceEntitlementException.ERROR_TOKEN_NOT_AVAILABLE, in getAuthToken()
283 throws ServiceEntitlementException { in getOidcAuthServer()
302 throws ServiceEntitlementException { in getAuthToken()
DEapAkaHelper.java108 } catch (ServiceEntitlementException e) { in getEapAkaResponse()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
DHttpClient.java19 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_HTTP_STATUS_NOT_S…
20 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_MALFORMED_HTTP_RE…
21 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_SERVER_NOT_CONNEC…
36 import com.android.libraries.entitlement.ServiceEntitlementException;
68 public HttpResponse request(HttpRequest request) throws ServiceEntitlementException { in request()
93 throw new ServiceEntitlementException( in request()
119 private void createConnection(HttpRequest request) throws ServiceEntitlementException { in createConnection()
142 throw new ServiceEntitlementException( in createConnection()
155 throws ServiceEntitlementException { in getHttpResponse()
163 throw new ServiceEntitlementException(ERROR_HTTP_STATUS_NOT_SUCCESS, responseCode, in getHttpResponse()
[all …]
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/
DEapAkaApi.java19 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_EAP_AKA_FAILURE;
20 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_EAP_AKA_SYNCHRONI…
21 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_JSON_COMPOSE_FAIL…
22 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_MALFORMED_HTTP_RE…
37 import com.android.libraries.entitlement.ServiceEntitlementException;
162 throws ServiceEntitlementException { in queryEntitlementStatus()
214 throw new ServiceEntitlementException( in queryEntitlementStatus()
259 throws ServiceEntitlementException { in respondToEapAkaChallenge()
303 throw new ServiceEntitlementException( in respondToEapAkaChallenge()
319 throw new ServiceEntitlementException( in respondToEapAkaChallenge()
[all …]
DEapAkaChallenge.java19 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_ICC_AUTHENTICATIO…
28 import com.android.libraries.entitlement.ServiceEntitlementException;
61 throws ServiceEntitlementException { in parseEapAkaChallenge()
66 throw new ServiceEntitlementException( in parseEapAkaChallenge()
75 throw new ServiceEntitlementException( in parseEapAkaChallenge()
DEapAkaResponse.java19 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_ICC_AUTHENTICATIO…
31 import com.android.libraries.entitlement.ServiceEntitlementException;
85 throws ServiceEntitlementException { in respondToEapAkaChallenge()
97 throw new ServiceEntitlementException( in respondToEapAkaChallenge()
117 throw new ServiceEntitlementException( in respondToEapAkaChallenge()
126 throw new ServiceEntitlementException( in respondToEapAkaChallenge()
142 throw new ServiceEntitlementException( in respondToEapAkaChallenge()
DEapAkaSecurityContext.java19 import static com.android.libraries.entitlement.ServiceEntitlementException.ERROR_ICC_AUTHENTICATIO…
28 import com.android.libraries.entitlement.ServiceEntitlementException;
58 throws ServiceEntitlementException { in from()
62 throw new ServiceEntitlementException( in from()
DMasterKey.java26 import com.android.libraries.entitlement.ServiceEntitlementException;
65 throws ServiceEntitlementException { in create()
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/http/
DHttpClientTest.java32 import com.android.libraries.entitlement.ServiceEntitlementException;
123 ServiceEntitlementException exception = in request_httpGetResponseBadRequest_throwsException()
124 expectThrows(ServiceEntitlementException.class, () -> mHttpClient.request(request)); in request_httpGetResponseBadRequest_throwsException()
128 ServiceEntitlementException.ERROR_HTTP_STATUS_NOT_SUCCESS); in request_httpGetResponseBadRequest_throwsException()
213 ServiceEntitlementException exception = expectThrows( in request_getResponseCodeFailed_expectThrowsException()
214 ServiceEntitlementException.class, () -> mHttpClient.request(request)); in request_getResponseCodeFailed_expectThrowsException()
217 ServiceEntitlementException.ERROR_HTTP_STATUS_NOT_SUCCESS); in request_getResponseCodeFailed_expectThrowsException()
239 ServiceEntitlementException exception = expectThrows( in request_getResponseBodyFailed_expectThrowsException()
240 ServiceEntitlementException.class, () -> mHttpClient.request(request)); in request_getResponseBodyFailed_expectThrowsException()
243 ServiceEntitlementException.ERROR_MALFORMED_HTTP_RESPONSE); in request_getResponseBodyFailed_expectThrowsException()
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/
DTs43AuthenticationTest.java171 } catch (ServiceEntitlementException e) { in testGetAuthToken_tokenNotAvailable_throwException()
173 ServiceEntitlementException.ERROR_TOKEN_NOT_AVAILABLE); in testGetAuthToken_tokenNotAvailable_throwException()
188 doThrow(new ServiceEntitlementException( in testGetAuthToken_httpResponseError()
189 ServiceEntitlementException.ERROR_HTTP_STATUS_NOT_SUCCESS, 1234, "http error")) in testGetAuthToken_httpResponseError()
195 } catch (ServiceEntitlementException e) { in testGetAuthToken_httpResponseError()
197 ServiceEntitlementException.ERROR_HTTP_STATUS_NOT_SUCCESS); in testGetAuthToken_httpResponseError()
DServiceEntitlementTest.java87 ServiceEntitlementException exception = in queryEntitlementStatus_noServerAddress_throwException()
89 ServiceEntitlementException.class, in queryEntitlementStatus_noServerAddress_throwException()
95 .isEqualTo(ServiceEntitlementException.ERROR_SERVER_NOT_CONNECTABLE); in queryEntitlementStatus_noServerAddress_throwException()
/frameworks/libs/service_entitlement/
DAndroid.bp101 "java/com/android/libraries/entitlement/ServiceEntitlementException.java",