Package org.openapitools.client.auth
Class HttpBasicAuth
java.lang.Object
org.openapitools.client.auth.HttpBasicAuth
- All Implemented Interfaces:
Authentication
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToParams
(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.void
setPassword
(String password) void
setUsername
(String username)
-
Field Details
-
username
-
password
-
-
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:Authentication
Apply authentication settings to header and query params.- Specified by:
applyToParams
in interfaceAuthentication
- Parameters:
queryParams
- List of query parametersheaderParams
- Map of header parameterscookieParams
- Map of cookie parameterspayload
- HTTP request bodymethod
- HTTP methoduri
- URI- Throws:
ApiException
- if failed to update the parameters
-