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 Summary
ConstructorsConstructorDescriptionKeySecretAuthManager
(@NonNull KeySecretAuthInfo authInfo) Creates a newKeySecretAuthManager
instance. -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Request.Builder
addAuthentication
(okhttp3.Request.Builder requestBuilder) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amilesend.client.connection.auth.AuthManager
isAuthenticated
-
Constructor Details
-
KeySecretAuthManager
Creates a newKeySecretAuthManager
instance.- Parameters:
authInfo
- The user's key and secret.
-
-
Method Details
-
getAuthInfo
- Specified by:
getAuthInfo
in interfacecom.amilesend.client.connection.auth.AuthManager<KeySecretAuthInfo>
-
addAuthentication
public okhttp3.Request.Builder addAuthentication( okhttp3.Request.Builder requestBuilder) - Specified by:
addAuthentication
in interfacecom.amilesend.client.connection.auth.AuthManager<KeySecretAuthInfo>
-