Class BasicAuthProvider
- java.lang.Object
-
- org.camunda.bpm.client.interceptor.auth.BasicAuthProvider
-
- All Implemented Interfaces:
ClientRequestInterceptor
public class BasicAuthProvider extends Object implements ClientRequestInterceptor
Provides HTTP Basic Authentication by using the request interceptor api
- Author:
- Tassilo Weidner
-
-
Constructor Summary
Constructors Constructor Description BasicAuthProvider(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
encodeToBase64(String decodedString)
void
intercept(ClientRequestContext requestContext)
Gets invoked before a request is sent to the http server
-
-
-
Field Detail
-
LOG
protected static final ExternalTaskClientLogger LOG
-
username
protected String username
-
password
protected String password
-
-
Method Detail
-
intercept
public void intercept(ClientRequestContext requestContext)
Description copied from interface:ClientRequestInterceptor
Gets invoked before a request is sent to the http server- Specified by:
intercept
in interfaceClientRequestInterceptor
- Parameters:
requestContext
- provides the data of the request and offers methods to change it
-
-