Class KeySecretAuthManager

java.lang.Object
com.amilesend.discogs.connection.auth.KeySecretAuthManager
All Implemented Interfaces:
com.amilesend.client.connection.auth.AuthManager<KeySecretAuthInfo>

public class KeySecretAuthManager extends Object implements com.amilesend.client.connection.auth.AuthManager<KeySecretAuthInfo>
Authorization manager for key + secret pairs.
See Also:
  • Constructor Details

    • KeySecretAuthManager

      public KeySecretAuthManager(@NonNull KeySecretAuthInfo authInfo)
      Creates a new KeySecretAuthManager instance.
      Parameters:
      authInfo - The user's key and secret.
  • Method Details

    • getAuthInfo

      public KeySecretAuthInfo getAuthInfo()
      Specified by:
      getAuthInfo in interface com.amilesend.client.connection.auth.AuthManager<KeySecretAuthInfo>
    • addAuthentication

      public okhttp3.Request.Builder addAuthentication( okhttp3.Request.Builder requestBuilder)
      Specified by:
      addAuthentication in interface com.amilesend.client.connection.auth.AuthManager<KeySecretAuthInfo>