public class BasicAuthRequestInterceptor extends java.lang.Object implements RequestInterceptor
| Constructor and Description |
|---|
BasicAuthRequestInterceptor(java.lang.String username,
java.lang.String password)
Creates an interceptor that authenticates all requests with the specified username and password
encoded using ISO-8859-1.
|
BasicAuthRequestInterceptor(java.lang.String username,
java.lang.String password,
java.nio.charset.Charset charset)
Creates an interceptor that authenticates all requests with the specified username and password
encoded using the specified charset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(RequestTemplate template)
Called for every request.
|
public BasicAuthRequestInterceptor(java.lang.String username,
java.lang.String password)
username - the username to use for authenticationpassword - the password to use for authenticationpublic BasicAuthRequestInterceptor(java.lang.String username,
java.lang.String password,
java.nio.charset.Charset charset)
username - the username to use for authenticationpassword - the password to use for authenticationcharset - the charset to use when encoding the credentialspublic void apply(RequestTemplate template)
RequestInterceptorRequestTemplate.apply in interface RequestInterceptor