public static interface AuthorizationServiceConfiguration.RetrieveConfigurationCallback
Callback interface for configuration retrieval.
| Modifier and Type | Method and Description |
|---|---|
void |
onFetchConfigurationCompleted(AuthorizationServiceConfiguration serviceConfiguration,
AuthorizationException ex)
Invoked when the retrieval of the discovery doc completes successfully or fails.
|
void onFetchConfigurationCompleted(@Nullable
AuthorizationServiceConfiguration serviceConfiguration,
@Nullable
AuthorizationException ex)
Invoked when the retrieval of the discovery doc completes successfully or fails.
Exactly one of `serviceConfiguration` or `ex` will be non-null. If `serviceConfiguration` is `null`, a failure occurred during the request. This can happen if a bad URL was provided, no connection to the server could be established, or the retrieved JSON is incomplete or badly formatted.
serviceConfiguration - the service configuration that can be used to initialize
the AuthorizationService, if retrieval was successful; null otherwise.ex - the exception that caused an error.