Interface IOAuthToken

All Known Implementing Classes:
OAuth20Token

public interface IOAuthToken
An interface for oauth tokens
Since:
18650
  • Method Details

    • sign

      void sign(HttpClient client) throws OAuthException
      Sign a client
      Parameters:
      client - The client to sign
      Throws:
      OAuthException - if the OAuth token type is unknown (AKA we don't know how to handle it)
    • toPreferencesString

      Get the preferences string of this auth token. This should match the expected return body from the authentication server. For OAuth, this is typically JSON.
      Returns:
      The preferences string
    • getOAuthType

      Get the auth type of this token
      Returns:
      The auth type
    • getParameters

      Get the OAuth parameters
      Returns:
      The OAuth parameters