Class AccessTokenResponse

java.lang.Object
com.amilesend.discogs.connection.auth.oauth.AccessTokenResponse

public class AccessTokenResponse extends Object
Describes the response during the OAuth flow when requesting the access token that is used during the handshake to request permission from the user that explicitly granted the application access.
  • Method Details

    • parseBodyResponse

      public static AccessTokenResponse parseBodyResponse(String response)
      Parses a service response message body to extract and build an AccessTokenResponse.
      Parameters:
      response - the response body contents
      Returns:
      the access token response
    • toOAuthInfo

      public OAuthInfo toOAuthInfo()
    • builder

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAccessToken

      public String getAccessToken()
      The access token.
    • getAccessTokenSecret

      public String getAccessTokenSecret()
      The access token secret.