Class ClientCredentialsGrantType
java.lang.Object
org.mule.runtime.extension.api.connectivity.oauth.ClientCredentialsGrantType
- All Implemented Interfaces:
org.mule.runtime.api.meta.NamedObject,OAuthGrantType
Implementation of
OAuthGrantType which contains information about how to use the Client Credentials grant type against
a particular OAuth provider- Since:
- 1.2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientCredentialsGrantType(String tokenUrl, String accessTokenExpr, String expirationRegex, String defaultScopes, CredentialsPlacement credentialsPlacement) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(OAuthGrantTypeVisitor visitor) Accepts a visitorgetName()
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ClientCredentialsGrantType
public ClientCredentialsGrantType(String tokenUrl, String accessTokenExpr, String expirationRegex, String defaultScopes, CredentialsPlacement credentialsPlacement) Creates a new instance- Parameters:
tokenUrl- The url of the access token endpointaccessTokenExpr- Expression used to extract the access token from theaccessTokenUrlresponseexpirationRegex- Expression used to extract the expiration from theaccessTokenUrlresponsedefaultScopes- The default scopes to be request
-
-
Method Details
-
accept
Description copied from interface:OAuthGrantTypeAccepts a visitor- Specified by:
acceptin interfaceOAuthGrantType- Parameters:
visitor- anOAuthGrantTypeVisitor
-
getName
- Specified by:
getNamein interfaceorg.mule.runtime.api.meta.NamedObject
-
getTokenUrl
- Returns:
- The url of the access token endpoint
-
getAccessTokenExpr
- Specified by:
getAccessTokenExprin interfaceOAuthGrantType- Returns:
- Expression used to extract the access token from the
accessTokenUrlresponse
-
getExpirationRegex
- Specified by:
getExpirationRegexin interfaceOAuthGrantType- Returns:
- Expression used to extract the expiration from the
accessTokenUrlresponse
-
getDefaultScopes
- Returns:
- The default scopes to be requested
-
getCredentialsPlacement
-