public class DefaultClientCredentialsOAuthDancer extends AbstractOAuthDancer implements org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.oauth.api.ClientCredentialsOAuthDancer
clientCredentialsLocation, clientId, clientSecret, customParametersExtractorsExprs, encoding, name, resourceOwnerIdTransformer, responseAccessTokenExpr, responseExpiresInExpr, responseRefreshTokenExpr, scopes, tokenUrl| Constructor and Description |
|---|
DefaultClientCredentialsOAuthDancer(String name,
String clientId,
String clientSecret,
String tokenUrl,
String scopes,
org.mule.runtime.oauth.api.builder.ClientCredentialsLocation clientCredentialsLocation,
Charset encoding,
String responseAccessTokenExpr,
String responseRefreshTokenExpr,
String responseExpiresInExpr,
Map<String,String> customParametersExprs,
Function<String,String> resourceOwnerIdTransformer,
org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.lock.LockFactory lockProvider,
Map<String,org.mule.runtime.oauth.api.state.ResourceOwnerOAuthContext> tokensStore,
org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator,
org.mule.runtime.api.util.MultiMap<String,String> customParameters,
org.mule.runtime.api.util.MultiMap<String,String> customHeaders,
List<org.mule.runtime.oauth.api.listener.ClientCredentialsListener> listeners) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<String> |
accessToken() |
void |
addListener(org.mule.runtime.oauth.api.listener.ClientCredentialsListener listener) |
org.mule.runtime.oauth.api.state.ResourceOwnerOAuthContext |
getContext() |
void |
invalidateContext() |
CompletableFuture<Void> |
refreshToken() |
void |
removeListener(org.mule.runtime.oauth.api.listener.ClientCredentialsListener listener) |
void |
start() |
doAddListener, doRefreshToken, doRefreshTokenRequest, doRemoveListener, getContextForResourceOwner, getLockProvider, handleClientCredentials, invalidateContext, invokeTokenUrl, onEachListener, resolveExpression, resolveExpression, stop, tokenUrlExceptionHandler, updateOAuthContextAfterTokenResponse, updateResourceOwnerOAuthContextpublic DefaultClientCredentialsOAuthDancer(String name, String clientId, String clientSecret, String tokenUrl, String scopes, org.mule.runtime.oauth.api.builder.ClientCredentialsLocation clientCredentialsLocation, Charset encoding, String responseAccessTokenExpr, String responseRefreshTokenExpr, String responseExpiresInExpr, Map<String,String> customParametersExprs, Function<String,String> resourceOwnerIdTransformer, org.mule.runtime.api.scheduler.SchedulerService schedulerService, org.mule.runtime.api.lock.LockFactory lockProvider, Map<String,org.mule.runtime.oauth.api.state.ResourceOwnerOAuthContext> tokensStore, org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator, org.mule.runtime.api.util.MultiMap<String,String> customParameters, org.mule.runtime.api.util.MultiMap<String,String> customHeaders, List<org.mule.runtime.oauth.api.listener.ClientCredentialsListener> listeners)
public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class AbstractOAuthDancerorg.mule.runtime.api.exception.MuleExceptionpublic CompletableFuture<String> accessToken() throws org.mule.runtime.oauth.api.exception.RequestAuthenticationException
accessToken in interface org.mule.runtime.oauth.api.ClientCredentialsOAuthDancerorg.mule.runtime.oauth.api.exception.RequestAuthenticationExceptionpublic CompletableFuture<Void> refreshToken()
refreshToken in interface org.mule.runtime.oauth.api.ClientCredentialsOAuthDancerpublic void addListener(org.mule.runtime.oauth.api.listener.ClientCredentialsListener listener)
addListener in interface org.mule.runtime.oauth.api.ClientCredentialsOAuthDancerpublic void removeListener(org.mule.runtime.oauth.api.listener.ClientCredentialsListener listener)
removeListener in interface org.mule.runtime.oauth.api.ClientCredentialsOAuthDancerpublic void invalidateContext()
invalidateContext in interface org.mule.runtime.oauth.api.ClientCredentialsOAuthDancerpublic org.mule.runtime.oauth.api.state.ResourceOwnerOAuthContext getContext()
getContext in interface org.mule.runtime.oauth.api.ClientCredentialsOAuthDancerCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.