Interface HttpAuthorizationProvider

    • Method Detail

      • init

        void init​(HttpExternalSystemData configuration)
        Initializes the provider with the given configuration
        Parameters:
        configuration - Provides the configuration data of an HTTP protocol based external system
      • init

        default void init​(BaseOBObject configuration)
        Initializes the provider with the given configuration
        Parameters:
        configuration - A BaseOBObject with the configuration data of an HTTP protocol based external system
      • handleRequestRetry

        default boolean handleRequestRetry​(int statusCode)
        This method allows to execute additional actions required by the authorization method before retrying a request for which an error response is received. It also allows to skip the retry if needed by using the returned value: if true is returned then the retry is done and if false is returned then no retry is attempted.
        Parameters:
        statusCode - The status code of the external system response
        Returns:
        true if it is necessary to retry the connection with the External System or false to skip the retry
      • getAuthorizationData

        default Map<String,​Object> getAuthorizationData()
        Returns:
        a map containing information about authorization data used or generated by the provider. By default it returns an empty map.