Module org.mule.oauth.client.api
Interface OAuthClientCredentialsDancerBuilder
-
- All Superinterfaces:
OAuthDancerBuilder<ClientCredentialsOAuthDancer>
@NoImplement public interface OAuthClientCredentialsDancerBuilder extends OAuthDancerBuilder<ClientCredentialsOAuthDancer>
Builder that allows to configure the attributes for the client credentials grant type.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description OAuthClientCredentialsDancerBuilderaddListener(ClientCredentialsListener listener)Adds thelistener.OAuthClientCredentialsDancerBuildercustomBodyParameters(Map<String,String> customBodyParameters)Adds thecustomBodyParametersto the body of the token url request.OAuthClientCredentialsDancerBuildercustomHeaders(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.OAuthClientCredentialsDancerBuildercustomParameters(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.OAuthClientCredentialsDancerBuilderencodeClientCredentialsInBody(boolean encodeClientCredentialsInBody)Deprecated.since 4.2.0.-
Methods inherited from interface org.mule.oauth.client.api.builder.OAuthDancerBuilder
build, clientCredentials, customParametersExtractorsExprs, encoding, name, resourceOwnerIdTransformer, responseAccessTokenExpr, responseExpiresInExpr, responseRefreshTokenExpr, scopes, tokenUrl, tokenUrl, tokenUrl, tokenUrl, tokenUrl, withClientCredentialsIn
-
-
-
-
Method Detail
-
customParameters
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.- Parameters:
customParameters- aMapthe extra parameters to be sent with the token request toOAuthDancerBuilder.tokenUrl(String).- Returns:
- this builder
-
customHeaders
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.- Parameters:
customHeaders- aMapthe extra headers to be sent with the token request toOAuthDancerBuilder.tokenUrl(String).- Returns:
- this builder
-
customBodyParameters
OAuthClientCredentialsDancerBuilder customBodyParameters(Map<String,String> customBodyParameters)
Adds thecustomBodyParametersto the body of the token url request.- Parameters:
customBodyParameters- aSupplierfor the custom parameters- Returns:
thisbuilder- Throws:
IllegalArgumentException- ifcustomBodyParametersisnull- Since:
- 2.0.0
-
addListener
OAuthClientCredentialsDancerBuilder addListener(ClientCredentialsListener listener)
Adds thelistener. Listeners will be invoked in the same order as they were added- Parameters:
listener- theClientCredentialsListenerto be added- Throws:
IllegalArgumentException- if thelistenerisnull
-
encodeClientCredentialsInBody
@Deprecated OAuthClientCredentialsDancerBuilder encodeClientCredentialsInBody(boolean encodeClientCredentialsInBody)
Deprecated.since 4.2.0. UseOAuthDancerBuilder.withClientCredentialsIn(ClientCredentialsLocation)instead.- Parameters:
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.- Returns:
- this builder
-
-