Interface AuthorizationServiceConfiguration.RetrieveConfigurationCallback

    • 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 the AuthorizationService, if retrieval was successful; null otherwise.
        ex - the exception that caused an error.