public class AuthorizationCodeConnectionProviderWrapper<C> extends BaseOAuthConnectionProviderWrapper<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() |
protected ResourceOwnerOAuthContext |
getContext() |
org.mule.runtime.extension.api.connectivity.oauth.OAuthGrantType |
getGrantType() |
void |
invalidate(String resourceOwnerId)
Invalidates the context of the given
resourceOwnerId |
void |
refreshToken(String resourceOwnerId)
Executes a refresh token for the given
resourceOwnerId |
void |
start() |
getResourceOwnerId, validategetReconnectionConfigdisconnect, dispose, getConnectionManagementType, getDelegate, getPoolingProfile, getRetryPolicyTemplate, initialise, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionManagementType, getRetryPolicyTemplategetReconnectionConfiggetDelegatepublic 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 AbstractConnectionProviderWrapper<C>org.mule.runtime.api.connection.ConnectionExceptionpublic void refreshToken(String resourceOwnerId)
OAuthConnectionProviderWrapperresourceOwnerIdrefreshToken in interface OAuthConnectionProviderWrapper<C>resourceOwnerId - a resource owner Idpublic void invalidate(String resourceOwnerId)
OAuthConnectionProviderWrapperresourceOwnerIdinvalidate in interface OAuthConnectionProviderWrapper<C>public org.mule.runtime.extension.api.connectivity.oauth.OAuthGrantType getGrantType()
getGrantType in interface OAuthConnectionProviderWrapper<C>OAuthGrantTypeprotected ResourceOwnerOAuthContext getContext()
getContext in class BaseOAuthConnectionProviderWrapper<C>public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class AbstractConnectionProviderWrapper<C>org.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.