@Alias(value="oauth2c")
@DisplayName(value="Oauth2c Connection Provider")
@AuthorizationCode(accessTokenUrl="https://accounts.google.com/o/oauth2/token",
authorizationUrl="https://accounts.google.com/o/oauth2/auth",
defaultScopes="https://mail.google.com/ https://www.googleapis.com/auth/gmail.addons.current.action.compose https://www.googleapis.com/auth/gmail.addons.current.message.action https://www.googleapis.com/auth/gmail.addons.current.message.readonly https://www.googleapis.com/auth/gmail.compose https://www.googleapis.com/auth/gmail.insert https://www.googleapis.com/auth/gmail.labels https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.send")
public class Oauth2cConnectionProvider
extends com.mulesoft.connectivity.rest.commons.api.connection.oauth.BaseAuthorizationCodeConnectionProvider
implements org.mule.runtime.extension.api.connectivity.NoConnectivityTest
| Constructor and Description |
|---|
Oauth2cConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected com.mulesoft.connectivity.rest.commons.api.connection.RestConnection |
createConnection(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.client.auth.HttpAuthentication authentication,
org.mule.runtime.api.util.MultiMap<String,String> defaultQueryParams,
org.mule.runtime.api.util.MultiMap<String,String> defaultHeaders) |
String |
getBaseUri() |
Optional<com.mulesoft.connectivity.rest.commons.api.connection.TlsParameterGroup> |
getTlsConfig()
TlsParameterGroup that configures TLS and allows to switch between HTTP and HTTPS
protocols. |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(com.mulesoft.connectivity.rest.commons.api.connection.RestConnection restConnection) |
getOAuthState, getRefreshTokenConditionbuildAuthentication, configureClient, connect, disconnect, getConfigName, getConnectionIdleTimeout, getConnectionIdleTimeoutUnit, getConnectionTimeout, getConnectionTimeoutUnit, getDefaultHeaders, getDefaultQueryParams, getExpressionLanguage, getMaxConnections, getProxyConfig, getResponseBufferSize, initialise, isStreamResponse, isUsePersistentConnections, start, stop, validatepublic String getBaseUri()
getBaseUri in class com.mulesoft.connectivity.rest.commons.api.connection.BaseConnectionProviderpublic Optional<com.mulesoft.connectivity.rest.commons.api.connection.TlsParameterGroup> getTlsConfig()
TlsParameterGroup that configures TLS and allows to switch between HTTP and HTTPS
protocols.getTlsConfig in class com.mulesoft.connectivity.rest.commons.api.connection.BaseConnectionProviderTlsParameterGroupprotected com.mulesoft.connectivity.rest.commons.api.connection.RestConnection createConnection(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.client.auth.HttpAuthentication authentication,
org.mule.runtime.api.util.MultiMap<String,String> defaultQueryParams,
org.mule.runtime.api.util.MultiMap<String,String> defaultHeaders)
createConnection in class com.mulesoft.connectivity.rest.commons.api.connection.oauth.BaseAuthorizationCodeConnectionProviderpublic org.mule.runtime.api.connection.ConnectionValidationResult validate(com.mulesoft.connectivity.rest.commons.api.connection.RestConnection restConnection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<com.mulesoft.connectivity.rest.commons.api.connection.RestConnection>validate in class com.mulesoft.connectivity.rest.commons.api.connection.BaseConnectionProviderCopyright © 2023 MuleSoft, Inc.. All rights reserved.