public class ClientCredentialsConnectionProviderWrapper<C> extends BaseOAuthConnectionProviderWrapper<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() |
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 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 AbstractConnectionProviderWrapper<C>org.mule.runtime.api.connection.ConnectionExceptionpublic void refreshToken(String resourceOwnerId)
OAuthConnectionProviderWrapperresourceOwnerIdresourceOwnerId - a resource owner Idpublic void invalidate(String resourceOwnerId)
OAuthConnectionProviderWrapperresourceOwnerIdpublic org.mule.runtime.extension.api.connectivity.oauth.OAuthGrantType getGrantType()
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.