Class HttpBasicAuth
java.lang.Object
com.sap.cloud.sdk.services.openapi.apiclient.auth.HttpBasicAuth
- All Implemented Interfaces:
Authentication
Authentication at the OpenAPI API by providing username and password
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToParams
(org.springframework.util.MultiValueMap<String, String> queryParams, org.springframework.http.HttpHeaders headerParams) Apply authentication settings to header and / or query parameters.Get the passwordGet the usernamevoid
setPassword
(String password) Set the passwordvoid
setUsername
(String username) Set the username
-
Constructor Details
-
HttpBasicAuth
public HttpBasicAuth()
-
-
Method Details
-
getUsername
Get the username- Returns:
- The username
-
setUsername
Set the username- Parameters:
username
- The username
-
getPassword
Get the password- Returns:
- The password
-
setPassword
Set the password- Parameters:
password
- The password
-
applyToParams
public void applyToParams(@Nonnull org.springframework.util.MultiValueMap<String, String> queryParams, @Nonnull org.springframework.http.HttpHeaders headerParams) Description copied from interface:Authentication
Apply authentication settings to header and / or query parameters.- Specified by:
applyToParams
in interfaceAuthentication
- Parameters:
queryParams
- The query parameters for the requestheaderParams
- The header parameters for the request
-