Package net.openid.appauth
Interface AuthorizationService.RegistrationResponseCallback
-
- Enclosing class:
- AuthorizationService
public static interface AuthorizationService.RegistrationResponseCallback
Callback interface for token endpoint requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onRegistrationRequestCompleted(RegistrationResponse response, AuthorizationException ex)
Invoked when the request completes successfully or fails.
-
-
-
Method Detail
-
onRegistrationRequestCompleted
void onRegistrationRequestCompleted(@Nullable RegistrationResponse response, @Nullable AuthorizationException ex)
Invoked when the request completes successfully or fails.Exactly one of
response
orex
will be non-null. Ifresponse
isnull
, a failure occurred during the request. This can happen if an invalid URI was provided, no connection to the server could be established, or the response JSON was incomplete or incorrectly formatted.- Parameters:
response
- the retrieved registration response, if successful;null
otherwise.ex
- a description of the failure, if one occurred:null
otherwise.- See Also:
AuthorizationException.RegistrationRequestErrors
-
-