public class DefaultOAuthClientCredentialsDancerBuilder extends AbstractOAuthDancerBuilder<ClientCredentialsOAuthDancer> implements OAuthClientCredentialsDancerBuilder
clientCredentialsLocation, clientId, clientSecret, customParametersExtractorsExprs, encoding, expressionEvaluator, httpClientFactory, lockProvider, name, resourceOwnerIdTransformer, responseAccessTokenExpr, responseExpiresInExpr, responseRefreshTokenExpr, schedulerService, scopes, tokensStore, tokenUrl| Constructor and Description |
|---|
DefaultOAuthClientCredentialsDancerBuilder(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.lock.LockFactory lockProvider,
Map<String,ResourceOwnerOAuthContext> tokensStore,
HttpClientFactory httpClientFactory,
org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
OAuthClientCredentialsDancerBuilder |
addListener(ClientCredentialsListener listener)
Adds the
listener. |
ClientCredentialsOAuthDancer |
build()
Uses the configuration provided to this builder to create a new dancer.
|
OAuthClientCredentialsDancerBuilder |
customHeaders(Map<String,String> customHeaders)
There are OAuth implementations that require or allow extra headers to be sent when calling the token URL of the OAS.
|
OAuthClientCredentialsDancerBuilder |
customParameters(Map<String,String> customParameters)
There are OAuth implementations that require or allow extra query parameters to be sent when calling the token URL of the
OAS.
|
OAuthClientCredentialsDancerBuilder |
encodeClientCredentialsInBody(boolean encodeClientCredentialsInBody) |
clientCredentials, customParametersExtractorsExprs, encoding, name, resourceOwnerIdTransformer, responseAccessTokenExpr, responseExpiresInExpr, responseRefreshTokenExpr, scopes, tokenUrl, tokenUrl, tokenUrl, tokenUrl, tokenUrl, withClientCredentialsInclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclientCredentials, customParametersExtractorsExprs, encoding, name, resourceOwnerIdTransformer, responseAccessTokenExpr, responseExpiresInExpr, responseRefreshTokenExpr, scopes, tokenUrl, tokenUrl, tokenUrl, tokenUrl, tokenUrl, withClientCredentialsInpublic DefaultOAuthClientCredentialsDancerBuilder(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.lock.LockFactory lockProvider,
Map<String,ResourceOwnerOAuthContext> tokensStore,
HttpClientFactory httpClientFactory,
org.mule.runtime.api.el.MuleExpressionLanguage expressionEvaluator)
public OAuthClientCredentialsDancerBuilder encodeClientCredentialsInBody(boolean encodeClientCredentialsInBody)
encodeClientCredentialsInBody in interface OAuthClientCredentialsDancerBuilderencodeClientCredentialsInBody in class AbstractOAuthDancerBuilder<ClientCredentialsOAuthDancer>encodeClientCredentialsInBody - If @{code true}, the client id and client secret will be sent in the request body.
Otherwise, they will be sent as basic authentication.public OAuthClientCredentialsDancerBuilder customParameters(Map<String,String> customParameters)
OAuthClientCredentialsDancerBuildercustomParameters in interface OAuthClientCredentialsDancerBuildercustomParameters - a Map the extra parameters to be sent with the token request to OAuthDancerBuilder.tokenUrl(String).public OAuthClientCredentialsDancerBuilder customHeaders(Map<String,String> customHeaders)
OAuthClientCredentialsDancerBuildercustomHeaders in interface OAuthClientCredentialsDancerBuildercustomHeaders - a Map the extra headers to be sent with the token request to OAuthDancerBuilder.tokenUrl(String).public OAuthClientCredentialsDancerBuilder addListener(ClientCredentialsListener listener)
OAuthClientCredentialsDancerBuilderlistener. Listeners will be invoked in the same order as they were addedaddListener in interface OAuthClientCredentialsDancerBuilderlistener - the ClientCredentialsListener to be addedpublic ClientCredentialsOAuthDancer build()
OAuthDancerBuilderbuild in interface OAuthDancerBuilder<ClientCredentialsOAuthDancer>Copyright © 2022. All rights reserved.