Interface OAuthProviderListener


public interface OAuthProviderListener
Provides hooks into the token request handling procedure executed by OAuthProvider.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Called when the server response has been received.
    void
    Called after the request has been created and default headers added, but before the request has been signed.
    void
    Called after the request has been signed, but before it's being sent.
  • Method Details

    • prepareRequest

      void prepareRequest(HttpRequest request) throws Exception
      Called after the request has been created and default headers added, but before the request has been signed.
      Parameters:
      request - the request to be sent
      Throws:
      Exception
    • prepareSubmission

      void prepareSubmission(HttpRequest request) throws Exception
      Called after the request has been signed, but before it's being sent.
      Parameters:
      request - the request to be sent
      Throws:
      Exception
    • onResponseReceived

      boolean onResponseReceived(HttpRequest request, HttpResponse response) throws Exception
      Called when the server response has been received. You can implement this to manually handle the response data.
      Parameters:
      request - the request that was sent
      response - the response that was received
      Returns:
      returning true means you have handled the response, and the provider will return immediately. Return false to let the event propagate and let the provider execute its default response handling.
      Throws:
      Exception