HttpHeaders.setBasicAuth(String, String) while building the request.@Deprecated public static final class ExchangeFilterFunctions.Credentials extends Object
| Constructor and Description |
|---|
Credentials(String username,
String password)
Deprecated.
Create a new
Credentials instance with the given username and password. |
| Modifier and Type | Method and Description |
|---|---|
static Consumer<Map<String,Object>> |
basicAuthenticationCredentials(String username,
String password)
Deprecated.
Return a Consumer that stores the given username and password
as a request attribute of type
Credentials that is in turn
used by ExchangeFilterFunctions.basicAuthentication(). |
boolean |
equals(Object other)
Deprecated.
|
int |
hashCode()
Deprecated.
|
public static Consumer<Map<String,Object>> basicAuthenticationCredentials(String username, String password)
Credentials that is in turn
used by ExchangeFilterFunctions.basicAuthentication().username - the usernamepassword - the passwordClientRequest.Builder.attributes(java.util.function.Consumer),
ExchangeFilterFunctions.BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTE