Class BasicAuthProvider
- java.lang.Object
-
- org.camunda.bpm.client.interceptor.auth.BasicAuthProvider
-
- All Implemented Interfaces:
ClientRequestInterceptor
public class BasicAuthProvider extends java.lang.Object implements ClientRequestInterceptor
Provides HTTP Basic Authentication by using the request interceptor api
- Author:
- Tassilo Weidner
-
-
Field Summary
Fields Modifier and Type Field Description protected static ExternalTaskClientLogger
LOG
protected java.lang.String
password
protected java.lang.String
username
-
Constructor Summary
Constructors Constructor Description BasicAuthProvider(java.lang.String username, java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
encodeToBase64(java.lang.String decodedString)
void
intercept(ClientRequestContext requestContext)
Has been invoked before a request is sent to the http server
-
-
-
Field Detail
-
LOG
protected static final ExternalTaskClientLogger LOG
-
username
protected java.lang.String username
-
password
protected java.lang.String password
-
-
Method Detail
-
intercept
public void intercept(ClientRequestContext requestContext)
Description copied from interface:ClientRequestInterceptor
Has been 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
-
encodeToBase64
protected java.lang.String encodeToBase64(java.lang.String decodedString)
-
-