public static final class ExchangeFilterFunctions.Credentials
extends java.lang.Object
ExchangeFilterFunctions.basicAuthentication().| Constructor and Description |
|---|
Credentials(java.lang.String username,
java.lang.String password)
Create a new
Credentials instance with the given username and password. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> |
basicAuthenticationCredentials(java.lang.String username,
java.lang.String password)
Return a consumer that stores the given username and password in the
request
attributes as a
Credentials object. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
public Credentials(java.lang.String username,
java.lang.String password)
Credentials instance with the given username and password.username - the usernamepassword - the passwordpublic static java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> basicAuthenticationCredentials(java.lang.String username,
java.lang.String password)
Credentials object.username - the usernamepassword - the passwordClientRequest.Builder.attributes(java.util.function.Consumer),
ExchangeFilterFunctions.BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTEpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object