Class NoOpAuthManager

java.lang.Object
com.amilesend.client.connection.auth.NoOpAuthManager
All Implemented Interfaces:
AuthManager<NoAuthInfo>

public class NoOpAuthManager extends Object implements AuthManager<NoAuthInfo>
Defines the auth manager for non-authorized/signed requests.
See Also:
  • Constructor Details

    • NoOpAuthManager

      public NoOpAuthManager()
  • Method Details

    • getAuthInfo

      public NoAuthInfo getAuthInfo()
      Description copied from interface: AuthManager
      Retrieves the current authentication info.
      Specified by:
      getAuthInfo in interface AuthManager<NoAuthInfo>
      Returns:
      the authentication info
      See Also:
    • isAuthenticated

      public boolean isAuthenticated()
      Description copied from interface: AuthManager
      Gets the authentication state.
      Specified by:
      isAuthenticated in interface AuthManager<NoAuthInfo>
      Returns:
      true if authenticated; else, false
    • addAuthentication

      public okhttp3.Request.Builder addAuthentication(okhttp3.Request.Builder requestBuilder)
      Description copied from interface: AuthManager
      Adds the authentication information to the request being built.
      Specified by:
      addAuthentication in interface AuthManager<NoAuthInfo>
      Parameters:
      requestBuilder - the request builder
      Returns:
      the builder with the authentication information added