Interface AuthConfigService<T>
- All Known Subinterfaces:
AuthConfiguredSocketFactoryService
,HttpClientAuthConfigService
- All Known Implementing Classes:
AbstractAuthConfigService
,DefaultAuthConfiguredSocketFactoryService
,DefaultHttpClientAuthConfigService
All classes implementing this interface are intended to help resolve authentication configurations that can be either stored as single string or list of pair key->value.
Authentication string must be follow syntax: <method>:<method_data>
.
Where <method>
is one of supported authentication methods for HttpClient
and <method_data>
are data necessary for this method. Parameters follow syntax
<parameter1>=<value1>,<parameter2>=<value2>
, unless specified otherwise. Special characters `,=`
in parameters can be escaped with backslash character `\`. Double backslash `\\` will be
translated to single backslash.
Alternative format for authentication data is parameters map. It supports any kind of data. It is used primary
for credentials data, that cannot be stored as authentication string and for internal purposes.
Each parameters map have required entry method
which is the equivalent of method from authentication string.
All other data in map translates to method parameters.
See details of each service for more info. Do not implement this interface of your own, it exists for technical reasons.
-
Method Summary
Modifier and TypeMethodDescriptionresolveFromSettings
(Map<String, Object> authenticationData) resolveFromString
(String authenticationData)
-
Method Details
-
resolveFromString
-
resolveFromSettings
-