public static interface AuthorizationServiceConfiguration.RetrieveConfigurationCallback
| 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)
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 otherwiseex - the exception that caused an error