Interface IOAuthToken

  • All Known Implementing Classes:
    OAuth20Token

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

      • 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

        java.lang.String 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