Package net.openid.appauth
Interface AuthorizationServiceConfiguration.RetrieveConfigurationCallback
-
- Enclosing class:
- AuthorizationServiceConfiguration
public static interface AuthorizationServiceConfiguration.RetrieveConfigurationCallback
Callback interface for configuration retrieval.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onFetchConfigurationCompleted(AuthorizationServiceConfiguration serviceConfiguration, AuthorizationException ex)
Invoked when the retrieval of the discovery doc completes successfully or fails.
-
-
-
Method Detail
-
onFetchConfigurationCompleted
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.
- Parameters:
serviceConfiguration
- the service configuration that can be used to initialize theAuthorizationService
, if retrieval was successful;null
otherwise.ex
- the exception that caused an error.
-
-