public class BasicAuthProvider extends Object implements ClientRequestInterceptor
Provides HTTP Basic Authentication by using the request interceptor api
Modifier and Type | Field and Description |
---|---|
protected static ExternalTaskClientLogger |
LOG |
protected String |
password |
protected String |
username |
Constructor and Description |
---|
BasicAuthProvider(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
protected String |
encodeToBase64(String decodedString) |
void |
intercept(ClientRequestContext requestContext)
Has been invoked before a request is sent to the http server
|
protected static final ExternalTaskClientLogger LOG
protected String username
protected String password
public void intercept(ClientRequestContext requestContext)
ClientRequestInterceptor
intercept
in interface ClientRequestInterceptor
requestContext
- provides the data of the request and offers methods to change itCopyright © 2022. All rights reserved.