Class BasicHttpAlwaysInHeaderAuthorizationProvider
- java.lang.Object
-
- org.openbravo.service.externalsystem.http.BasicHttpAlwaysInHeaderAuthorizationProvider
-
- All Implemented Interfaces:
HttpAuthorizationProvider
,HttpAuthorizationRequestHeaderProvider
public class BasicHttpAlwaysInHeaderAuthorizationProvider extends Object implements HttpAuthorizationProvider, HttpAuthorizationRequestHeaderProvider
Used to authenticate an HTTP request by providing the basic authorization information always in the header
-
-
Constructor Summary
Constructors Constructor Description BasicHttpAlwaysInHeaderAuthorizationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getHeaders()
Retrieves the HTTP headers with the required authorization information to be included into the HTTP requestsvoid
init(HttpExternalSystemData configuration)
Initializes the required information based on the provided configuration
-
-
-
Method Detail
-
init
public void init(HttpExternalSystemData configuration)
Description copied from interface:HttpAuthorizationProvider
Initializes the required information based on the provided configuration- Specified by:
init
in interfaceHttpAuthorizationProvider
- Parameters:
configuration
- Provides the configuration data of an HTTP protocol based external system
-
getHeaders
public Map<String,String> getHeaders()
Description copied from interface:HttpAuthorizationRequestHeaderProvider
Retrieves the HTTP headers with the required authorization information to be included into the HTTP requests- Specified by:
getHeaders
in interfaceHttpAuthorizationRequestHeaderProvider
- Returns:
- a map with the security headers where for each entry the key is the header name and the values is the header value
-
-