Class NoOpAuthManager
java.lang.Object
com.amilesend.client.connection.auth.NoOpAuthManager
- All Implemented Interfaces:
AuthManager<NoAuthInfo>
Defines the auth manager for non-authorized/signed requests.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Request.Builder
addAuthentication
(okhttp3.Request.Builder requestBuilder) Adds the authentication information to the request being built.Retrieves the current authentication info.boolean
Gets the authentication state.
-
Constructor Details
-
NoOpAuthManager
public NoOpAuthManager()
-
-
Method Details
-
getAuthInfo
Description copied from interface:AuthManager
Retrieves the current authentication info.- Specified by:
getAuthInfo
in interfaceAuthManager<NoAuthInfo>
- Returns:
- the authentication info
- See Also:
-
isAuthenticated
public boolean isAuthenticated()Description copied from interface:AuthManager
Gets the authentication state.- Specified by:
isAuthenticated
in interfaceAuthManager<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 interfaceAuthManager<NoAuthInfo>
- Parameters:
requestBuilder
- the request builder- Returns:
- the builder with the authentication information added
-