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 Summary

    Modifier and Type
    Method
    Description
    okhttp3.Request.Builder
    addAuthentication(okhttp3.Request.Builder requestBuilder)
    Adds the authentication information to the request being built.
    Retrieves the current authentication info.
    default boolean
    Gets the authentication state.
  • Method Details

    • getAuthInfo

      T getAuthInfo()
      Retrieves the current authentication info.
      Returns:
      the authentication info
      See Also:
    • isAuthenticated

      default boolean isAuthenticated()
      Gets the authentication state.
      Returns:
      true if authenticated; else, false
    • addAuthentication

      okhttp3.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