Package com.datadog.api.client.auth
Class HttpBasicAuth
java.lang.Object
com.datadog.api.client.auth.HttpBasicAuth
- All Implemented Interfaces:
Authentication
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class HttpBasicAuth
extends Object
implements Authentication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, String> cookieParams, String payload, String method, URI uri) Apply authentication settings to header and query params.voidsetPassword(String password) voidsetUsername(String username)
-
Constructor Details
-
HttpBasicAuth
public HttpBasicAuth()
-
-
Method Details
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
applyToParams
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, throws ApiExceptionString> cookieParams, String payload, String method, URI uri) Description copied from interface:AuthenticationApply authentication settings to header and query params.- Specified by:
applyToParamsin interfaceAuthentication- Parameters:
queryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameterspayload- Raw payloadmethod- HTTP method to authenticateuri- URI to authenticate- Throws:
ApiException- If the settings can't be applied
-