Class TokenAuthManager
java.lang.Object
com.amilesend.tmdb.client.connection.auth.TokenAuthManager
- All Implemented Interfaces:
com.amilesend.client.connection.auth.AuthManager<TokenAuthInfo>
public class TokenAuthManager
extends Object
implements com.amilesend.client.connection.auth.AuthManager<TokenAuthInfo>
Authorization manager for read access tokens.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTokenAuthManager
(@NonNull TokenAuthInfo authInfo) Creates a newTokenAuthManager
instance. -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Request.Builder
addAuthentication
(okhttp3.Request.Builder requestBuilder) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amilesend.client.connection.auth.AuthManager
isAuthenticated
-
Constructor Details
-
TokenAuthManager
Creates a newTokenAuthManager
instance.- Parameters:
authInfo
- The authorization information.
-
-
Method Details
-
getAuthInfo
- Specified by:
getAuthInfo
in interfacecom.amilesend.client.connection.auth.AuthManager<TokenAuthInfo>
-
addAuthentication
public okhttp3.Request.Builder addAuthentication(okhttp3.Request.Builder requestBuilder) - Specified by:
addAuthentication
in interfacecom.amilesend.client.connection.auth.AuthManager<TokenAuthInfo>
-