public class HttpBasicAuth extends Object implements Authentication
Constructor and Description |
---|
HttpBasicAuth() |
Modifier and Type | Method and Description |
---|---|
void |
applyToParams(org.springframework.util.MultiValueMap<String,String> queryParams,
org.springframework.http.HttpHeaders headerParams)
Apply authentication settings to header and / or query parameters.
|
String |
getPassword()
Get the password
|
String |
getUsername()
Get the username
|
void |
setPassword(String password)
Set the password
|
void |
setUsername(String username)
Set the username
|
public void setUsername(@Nonnull String username)
username
- The usernamepublic void setPassword(@Nonnull String password)
password
- The passwordpublic void applyToParams(@Nonnull org.springframework.util.MultiValueMap<String,String> queryParams, @Nonnull org.springframework.http.HttpHeaders headerParams)
applyToParams
in interface Authentication
queryParams
- The query parameters for the requestheaderParams
- The header parameters for the requestCopyright © 2021 SAP SE. All rights reserved.