public static final class ExchangeFilterFunctions.Credentials extends Object
| 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 user,
String password)
Return a Consumer that stores the given user and password
as a request attribute of type
Credentials that is in turn
used by ExchangeFilterFunctions.basicAuthentication(). |
boolean |
equals(Object other) |
int |
hashCode() |
public static Consumer<Map<String,Object>> basicAuthenticationCredentials(String user, String password)
Credentials that is in turn
used by ExchangeFilterFunctions.basicAuthentication().user - the userpassword - the passwordClientRequest.Builder.attributes(java.util.function.Consumer),
ExchangeFilterFunctions.BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTE