public static final class ExchangeFilterFunctions.Credentials
extends java.lang.Object
| 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 user,
java.lang.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(java.lang.Object other) |
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 user,
java.lang.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_ATTRIBUTEpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object