Class AbstractOAuthDancerBuilder<D>

    • 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
      • 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
      • customParametersExtractorsExprs

        protected Map<String,​String> customParametersExtractorsExprs
    • 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:
        name in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • clientCredentials

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder clientCredentials​(String clientId,
                                                                                      String clientSecret)
        Specified by:
        clientCredentials in interface org.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:
        withClientCredentialsIn in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • tokenUrl

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder tokenUrl​(String tokenUrl)
        Specified by:
        tokenUrl in interface org.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:
        tokenUrl in interface org.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:
        tokenUrl in interface org.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:
        tokenUrl in interface org.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:
        tokenUrl in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • scopes

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder scopes​(String scopes)
        Specified by:
        scopes in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • encoding

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder encoding​(Charset encoding)
        Specified by:
        encoding in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • responseAccessTokenExpr

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder responseAccessTokenExpr​(String responseAccessTokenExpr)
        Specified by:
        responseAccessTokenExpr in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • responseRefreshTokenExpr

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder responseRefreshTokenExpr​(String responseRefreshTokenExpr)
        Specified by:
        responseRefreshTokenExpr in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • responseExpiresInExpr

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder responseExpiresInExpr​(String responseExpiresInExpr)
        Specified by:
        responseExpiresInExpr in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • customParametersExtractorsExprs

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder customParametersExtractorsExprs​(Map<String,​String> customParamsExtractorsExprs)
        Specified by:
        customParametersExtractorsExprs in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>
      • resourceOwnerIdTransformer

        public org.mule.oauth.client.api.builder.OAuthDancerBuilder<D> resourceOwnerIdTransformer​(Function<String,​String> resourceOwnerIdTransformer)
        Specified by:
        resourceOwnerIdTransformer in interface org.mule.oauth.client.api.builder.OAuthDancerBuilder<D>