C - public abstract class BaseAuthorizationCodeConnectionProvider<C extends OAuthRestConnection> extends RestConnectionProvider<C>
OAuthRestConnections that authenticate using OAuth with the Authorization Code Grant Type.| Modifier and Type | Field and Description |
|---|---|
protected org.mule.runtime.extension.api.connectivity.oauth.AuthorizationCodeState |
oauthState |
httpService| Constructor and Description |
|---|
BaseAuthorizationCodeConnectionProvider() |
| 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)
Override this method if a custom condition needs to be implemented to check if refresh token is needed with a custom
implementation of
OAuthRestConnection. |
protected org.mule.runtime.extension.api.connectivity.oauth.AuthorizationCodeState |
getOAuthState() |
buildAuthentication, configureClient, connect, disconnect, getBaseUri, getResponseTimeout, initialise, isFollowsRedirect, start, stopprotected org.mule.runtime.extension.api.connectivity.oauth.AuthorizationCodeState oauthState
public BaseAuthorizationCodeConnectionProvider()
protected org.mule.runtime.extension.api.connectivity.oauth.AuthorizationCodeState getOAuthState()
protected C createConnection(org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.runtime.http.api.client.HttpRequestOptions httpRequestOptions)
OAuthRestConnection.createConnection in class RestConnectionProvider<C extends OAuthRestConnection>httpClient - the client to perform the requests.httpRequestOptions - the options for the http request client to perfom the requests.C connection.Copyright © 2022. All rights reserved.