public class ClientCredentialsConnectionProviderWrapper<C> extends OAuthConnectionProviderWrapper<C>
ReconnectableConnectionProviderWrapper which makes sure that by the time the
ConnectionProvider.connect() method is invoked on the delegate, the authorization dance has
been completed and the ClientCredentialsState and OAuthCallbackValue fields have
been properly injectedcallbackValuesmuleContext| Constructor and Description |
|---|
ClientCredentialsConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate,
ClientCredentialsConfig oauthConfig,
Map<Field,String> callbackValues,
ClientCredentialsOAuthHandler oauthHandler,
ReconnectionConfig reconnectionConfig) |
| Modifier and Type | Method and Description |
|---|---|
C |
connect() |
org.mule.runtime.extension.api.connectivity.oauth.OAuthGrantType |
getGrantType() |
void |
invalidate(String resourceOwnerId) |
void |
refreshToken(String resourceOwnerId) |
void |
start() |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(C connection) |
getOAuthStateSetter, updateOAuthParametersgetReconnectionConfigdisconnect, dispose, getDelegate, getPoolingProfile, getRetryPolicyTemplate, initialise, stoppublic ClientCredentialsConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate, ClientCredentialsConfig oauthConfig, Map<Field,String> callbackValues, ClientCredentialsOAuthHandler oauthHandler, ReconnectionConfig reconnectionConfig)
public C connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<C>connect in class ConnectionProviderWrapper<C>org.mule.runtime.api.connection.ConnectionExceptionpublic org.mule.runtime.api.connection.ConnectionValidationResult validate(C connection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<C>validate in class ReconnectableConnectionProviderWrapper<C>public void refreshToken(String resourceOwnerId)
refreshToken in class OAuthConnectionProviderWrapper<C>public void invalidate(String resourceOwnerId)
invalidate in class OAuthConnectionProviderWrapper<C>public org.mule.runtime.extension.api.connectivity.oauth.OAuthGrantType getGrantType()
getGrantType in class OAuthConnectionProviderWrapper<C>public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class ConnectionProviderWrapper<C>org.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.