C - public abstract class BaseBearerAuthenticationConnectionProvider<C extends BearerRestConnection> extends RestConnectionProvider<C>
RestConnections that authenticate using Bearer mechanism.expressionLanguage, httpService| Constructor and Description |
|---|
BaseBearerAuthenticationConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected C |
createConnection(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.client.HttpRequestOptions httpRequestOptions,
org.mule.runtime.api.el.ExpressionLanguage expressionLanguage)
Creates a new connection
C |
protected abstract String |
getToken()
Returns the token used to authenticate the requests that will be used to build the corresponding authentication.
|
buildAuthentication, configureClient, connect, disconnect, getBaseUri, getResponseTimeout, initialise, isFollowsRedirect, start, stoppublic BaseBearerAuthenticationConnectionProvider()
protected C createConnection(org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.runtime.http.api.client.HttpRequestOptions httpRequestOptions, org.mule.runtime.api.el.ExpressionLanguage expressionLanguage)
RestConnectionProviderCcreateConnection in class RestConnectionProvider<C extends BearerRestConnection>httpClient - the client to perform the requests.httpRequestOptions - the options for the http request client to perform the requests.expressionLanguage - the ExpressionLanguage to be passed to the connection (if required).Cprotected abstract String getToken()
Copyright © 2023. All rights reserved.