Interface AuthManager<T extends AuthInfo>
- All Known Implementing Classes:
- NoOpAuthManager
public interface AuthManager<T extends AuthInfo>
The interface that defines the manager that is responsible for obtaining correct authorization to interact
with the Discogs API.
- 
Method SummaryModifier and TypeMethodDescriptionokhttp3.Request.BuilderaddAuthentication(okhttp3.Request.Builder requestBuilder) Adds the authentication information to the request being built.Retrieves the current authentication info.default booleanGets the authentication state.
- 
Method Details- 
getAuthInfoT getAuthInfo()Retrieves the current authentication info.- Returns:
- the authentication info
- See Also:
 
- 
isAuthenticateddefault boolean isAuthenticated()Gets the authentication state.- Returns:
- trueif authenticated; else,- false
 
- 
addAuthenticationokhttp3.Request.Builder addAuthentication(okhttp3.Request.Builder requestBuilder) Adds the authentication information to the request being built.- Parameters:
- requestBuilder- the request builder
- Returns:
- the builder with the authentication information added
 
 
-