public class AuthorizationCodeConnectionProviderWrapper<C> extends OAuthConnectionProviderWrapper<C> implements org.mule.runtime.extension.api.connectivity.NoConnectivityTest
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 AuthorizationCodeState and OAuthCallbackValue fields have
been properly injectedcallbackValuesmuleContext| Constructor and Description |
|---|
AuthorizationCodeConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate,
AuthorizationCodeConfig oauthConfig,
Map<Field,String> callbackValues,
AuthorizationCodeOAuthHandler oauthHandler,
ReconnectionConfig reconnectionConfig) |
| Modifier and Type | Method and Description |
|---|---|
C |
connect() |
org.mule.runtime.extension.api.connectivity.oauth.OAuthGrantType |
getGrantType() |
String |
getResourceOwnerId() |
void |
invalidate(String resourceOwnerId) |
void |
refreshToken(String resourceOwnerId) |
void |
start() |
getOAuthStateSetter, updateOAuthParametersgetReconnectionConfig, validatedisconnect, dispose, getDelegate, getPoolingProfile, getRetryPolicyTemplate, initialise, stoppublic AuthorizationCodeConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate, AuthorizationCodeConfig oauthConfig, Map<Field,String> callbackValues, AuthorizationCodeOAuthHandler 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 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 String getResourceOwnerId()
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.