public class DefaultClientCredentialsOAuthDancer extends AbstractOAuthDancer implements org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.oauth.api.ClientCredentialsOAuthDancer
clientId, clientSecret, customParametersExtractorsExprs, encodeClientCredentialsInBody, encoding, resourceOwnerIdTransformer, responseAccessTokenExpr, responseExpiresInExpr, responseRefreshTokenExpr, scopes, tokenUrl| Constructor and Description |
|---|
DefaultClientCredentialsOAuthDancer(String clientId,
String clientSecret,
String tokenUrl,
String scopes,
boolean encodeClientCredentialsInBody,
Charset encoding,
String responseAccessTokenExpr,
String responseRefreshTokenExpr,
String responseExpiresInExpr,
Map<String,String> customParametersExprs,
Function<String,String> resourceOwnerIdTransformer,
org.mule.runtime.api.lock.LockFactory lockProvider,
Map<String,org.mule.runtime.oauth.api.state.DefaultResourceOwnerOAuthContext> tokensStore,
org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<String> |
accessToken() |
org.mule.runtime.oauth.api.state.ResourceOwnerOAuthContext |
getContext() |
void |
invalidateContext() |
CompletableFuture<Void> |
refreshToken() |
void |
start() |
getContextForResourceOwner, handleClientCredentials, invalidateContext, invokeTokenUrl, resolveExpression, resolveExpression, stop, updateResourceOwnerOAuthContextpublic DefaultClientCredentialsOAuthDancer(String clientId, String clientSecret, String tokenUrl, String scopes, boolean encodeClientCredentialsInBody, Charset encoding, String responseAccessTokenExpr, String responseRefreshTokenExpr, String responseExpiresInExpr, Map<String,String> customParametersExprs, Function<String,String> resourceOwnerIdTransformer, org.mule.runtime.api.lock.LockFactory lockProvider, Map<String,org.mule.runtime.oauth.api.state.DefaultResourceOwnerOAuthContext> tokensStore, org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator)
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 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.