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.BuilderaddAuthentication(okhttp3.Request.Builder requestBuilder) Adds the authentication information to the request being built.Retrieves the current authentication info.booleanGets the authentication state.
-
Constructor Details
-
NoOpAuthManager
public NoOpAuthManager()
-
-
Method Details
-
getAuthInfo
Description copied from interface:AuthManagerRetrieves the current authentication info.- Specified by:
getAuthInfoin interfaceAuthManager<NoAuthInfo>- Returns:
- the authentication info
- See Also:
-
isAuthenticated
public boolean isAuthenticated()Description copied from interface:AuthManagerGets the authentication state.- Specified by:
isAuthenticatedin interfaceAuthManager<NoAuthInfo>- Returns:
trueif authenticated; else,false
-
addAuthentication
public okhttp3.Request.Builder addAuthentication(okhttp3.Request.Builder requestBuilder) Description copied from interface:AuthManagerAdds the authentication information to the request being built.- Specified by:
addAuthenticationin interfaceAuthManager<NoAuthInfo>- Parameters:
requestBuilder- the request builder- Returns:
- the builder with the authentication information added
-