public static final class ExchangeFilterFunctions.Credentials extends Object
ExchangeFilterFunctions.basicAuthentication().| Constructor and Description |
|---|
Credentials(String username,
String password)
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)
Return a consumer that stores the given username and password in the
request
attributes as a
Credentials object. |
boolean |
equals(Object o) |
int |
hashCode() |
public static Consumer<Map<String,Object>> basicAuthenticationCredentials(String username, String password)
Credentials object.username - the usernamepassword - the passwordClientRequest.Builder.attributes(java.util.function.Consumer),
ExchangeFilterFunctions.BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTE