Module org.mule.oauth.client.impl
Class AbstractOAuthDancerBuilder<D>
- java.lang.Object
-
- org.mule.oauth.client.internal.builder.AbstractOAuthDancerBuilder<D>
-
- All Implemented Interfaces:
org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
- Direct Known Subclasses:
DefaultOAuthAuthorizationCodeDancerBuilder,DefaultOAuthClientCredentialsDancerBuilder
public abstract class AbstractOAuthDancerBuilder<D> extends Object implements org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
Base OAuth dancer builder implementations with behavior common to all grant-types.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.mule.oauth.client.api.builder.ClientCredentialsLocationclientCredentialsLocationprotected StringclientIdprotected StringclientSecretprotected Map<String,String>customParametersExtractorsExprsprotected Charsetencodingprotected org.mule.runtime.api.el.MuleExpressionLanguageexpressionEvaluatorprotected Supplier<org.mule.runtime.http.api.client.HttpClient>httpClientFactoryprotected org.mule.runtime.api.lock.LockFactorylockProviderprotected Stringnameprotected Function<String,String>resourceOwnerIdTransformerprotected StringresponseAccessTokenExprprotected StringresponseExpiresInExprprotected StringresponseRefreshTokenExprprotected org.mule.runtime.api.scheduler.SchedulerServiceschedulerServiceprotected Stringscopesprotected Map<String,org.mule.oauth.client.api.state.ResourceOwnerOAuthContext>tokensStoreprotected StringtokenUrl
-
Constructor Summary
Constructors Constructor Description AbstractOAuthDancerBuilder(org.mule.runtime.api.scheduler.SchedulerService schedulerService, org.mule.runtime.api.lock.LockFactory lockProvider, Map<String,org.mule.oauth.client.api.state.ResourceOwnerOAuthContext> tokensStore, HttpClientFactory baseHttpClientFactory, org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.mule.oauth.client.api.builder.OAuthDancerBuilderclientCredentials(String clientId, String clientSecret)org.mule.oauth.client.api.builder.OAuthDancerBuildercustomParametersExtractorsExprs(Map<String,String> customParamsExtractorsExprs)org.mule.oauth.client.api.builder.OAuthDancerBuilderencodeClientCredentialsInBody(boolean encodeClientCredentialsInBody)Deprecated.org.mule.oauth.client.api.builder.OAuthDancerBuilderencoding(Charset encoding)org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>name(String name)org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>resourceOwnerIdTransformer(Function<String,String> resourceOwnerIdTransformer)org.mule.oauth.client.api.builder.OAuthDancerBuilderresponseAccessTokenExpr(String responseAccessTokenExpr)org.mule.oauth.client.api.builder.OAuthDancerBuilderresponseExpiresInExpr(String responseExpiresInExpr)org.mule.oauth.client.api.builder.OAuthDancerBuilderresponseRefreshTokenExpr(String responseRefreshTokenExpr)org.mule.oauth.client.api.builder.OAuthDancerBuilderscopes(String scopes)org.mule.oauth.client.api.builder.OAuthDancerBuildertokenUrl(String tokenUrl)org.mule.oauth.client.api.builder.OAuthDancerBuildertokenUrl(String tokenUrl, org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory)org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>tokenUrl(String tokenUrl, org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory, org.mule.runtime.http.api.client.proxy.ProxyConfig proxyConfig)org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>tokenUrl(String tokenUrl, org.mule.runtime.http.api.client.proxy.ProxyConfig proxyConfig)org.mule.oauth.client.api.builder.OAuthDancerBuildertokenUrl(org.mule.runtime.http.api.client.HttpClient httpClient, String tokenUrl)org.mule.oauth.client.api.builder.OAuthDancerBuilderwithClientCredentialsIn(org.mule.oauth.client.api.builder.ClientCredentialsLocation clientCredentialsLocation)
-
-
-
Field Detail
-
schedulerService
protected final org.mule.runtime.api.scheduler.SchedulerService schedulerService
-
lockProvider
protected final org.mule.runtime.api.lock.LockFactory lockProvider
-
tokensStore
protected final Map<String,org.mule.oauth.client.api.state.ResourceOwnerOAuthContext> tokensStore
-
expressionEvaluator
protected final org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator
-
name
protected String name
-
clientId
protected String clientId
-
clientSecret
protected String clientSecret
-
clientCredentialsLocation
protected org.mule.oauth.client.api.builder.ClientCredentialsLocation clientCredentialsLocation
-
tokenUrl
protected String tokenUrl
-
httpClientFactory
protected Supplier<org.mule.runtime.http.api.client.HttpClient> httpClientFactory
-
encoding
protected Charset encoding
-
responseAccessTokenExpr
protected String responseAccessTokenExpr
-
responseRefreshTokenExpr
protected String responseRefreshTokenExpr
-
responseExpiresInExpr
protected String responseExpiresInExpr
-
scopes
protected String scopes
-
-
Constructor Detail
-
AbstractOAuthDancerBuilder
public AbstractOAuthDancerBuilder(org.mule.runtime.api.scheduler.SchedulerService schedulerService, org.mule.runtime.api.lock.LockFactory lockProvider, Map<String,org.mule.oauth.client.api.state.ResourceOwnerOAuthContext> tokensStore, HttpClientFactory baseHttpClientFactory, org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator)
-
-
Method Detail
-
name
public org.mule.oauth.client.api.builder.OAuthDancerBuilder<D> name(String name)
- Specified by:
namein interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
clientCredentials
public org.mule.oauth.client.api.builder.OAuthDancerBuilder clientCredentials(String clientId, String clientSecret)
- Specified by:
clientCredentialsin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
encodeClientCredentialsInBody
@Deprecated public org.mule.oauth.client.api.builder.OAuthDancerBuilder encodeClientCredentialsInBody(boolean encodeClientCredentialsInBody)
Deprecated.
-
withClientCredentialsIn
public org.mule.oauth.client.api.builder.OAuthDancerBuilder withClientCredentialsIn(org.mule.oauth.client.api.builder.ClientCredentialsLocation clientCredentialsLocation)
- Specified by:
withClientCredentialsInin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
tokenUrl
public org.mule.oauth.client.api.builder.OAuthDancerBuilder tokenUrl(String tokenUrl)
- Specified by:
tokenUrlin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
tokenUrl
public org.mule.oauth.client.api.builder.OAuthDancerBuilder tokenUrl(org.mule.runtime.http.api.client.HttpClient httpClient, String tokenUrl)- Specified by:
tokenUrlin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
tokenUrl
public org.mule.oauth.client.api.builder.OAuthDancerBuilder<D> tokenUrl(String tokenUrl, org.mule.runtime.http.api.client.proxy.ProxyConfig proxyConfig)
- Specified by:
tokenUrlin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
tokenUrl
public org.mule.oauth.client.api.builder.OAuthDancerBuilder tokenUrl(String tokenUrl, org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory)
- Specified by:
tokenUrlin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
tokenUrl
public org.mule.oauth.client.api.builder.OAuthDancerBuilder<D> tokenUrl(String tokenUrl, org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory, org.mule.runtime.http.api.client.proxy.ProxyConfig proxyConfig)
- Specified by:
tokenUrlin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
scopes
public org.mule.oauth.client.api.builder.OAuthDancerBuilder scopes(String scopes)
- Specified by:
scopesin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
encoding
public org.mule.oauth.client.api.builder.OAuthDancerBuilder encoding(Charset encoding)
- Specified by:
encodingin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
responseAccessTokenExpr
public org.mule.oauth.client.api.builder.OAuthDancerBuilder responseAccessTokenExpr(String responseAccessTokenExpr)
- Specified by:
responseAccessTokenExprin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
responseRefreshTokenExpr
public org.mule.oauth.client.api.builder.OAuthDancerBuilder responseRefreshTokenExpr(String responseRefreshTokenExpr)
- Specified by:
responseRefreshTokenExprin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
responseExpiresInExpr
public org.mule.oauth.client.api.builder.OAuthDancerBuilder responseExpiresInExpr(String responseExpiresInExpr)
- Specified by:
responseExpiresInExprin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
customParametersExtractorsExprs
public org.mule.oauth.client.api.builder.OAuthDancerBuilder customParametersExtractorsExprs(Map<String,String> customParamsExtractorsExprs)
- Specified by:
customParametersExtractorsExprsin interfaceorg.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
-
-