public final class ClientCredentialsGrantType extends Object implements OAuthGrantType
OAuthGrantType which contains information about how to use the Client Credentials grant type against
a particular OAuth provider| Constructor and Description |
|---|
ClientCredentialsGrantType(String tokenUrl,
String accessTokenExpr,
String expirationRegex,
String defaultScopes,
CredentialsPlacement credentialsPlacement)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OAuthGrantTypeVisitor visitor)
Accepts a visitor
|
String |
getAccessTokenExpr() |
CredentialsPlacement |
getCredentialsPlacement() |
Optional<String> |
getDefaultScopes() |
String |
getExpirationRegex() |
String |
getName() |
String |
getTokenUrl() |
public static final String NAME
public ClientCredentialsGrantType(String tokenUrl, String accessTokenExpr, String expirationRegex, String defaultScopes, CredentialsPlacement credentialsPlacement)
tokenUrl - The url of the access token endpointaccessTokenExpr - Expression used to extract the access token from the accessTokenUrl responseexpirationRegex - Expression used to extract the expiration from the accessTokenUrl responsedefaultScopes - The default scopes to be requestpublic void accept(OAuthGrantTypeVisitor visitor)
OAuthGrantTypeaccept in interface OAuthGrantTypevisitor - an OAuthGrantTypeVisitorpublic String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectpublic String getTokenUrl()
public String getAccessTokenExpr()
getAccessTokenExpr in interface OAuthGrantTypeaccessTokenUrl responsepublic String getExpirationRegex()
getExpirationRegex in interface OAuthGrantTypeaccessTokenUrl responsepublic Optional<String> getDefaultScopes()
public CredentialsPlacement getCredentialsPlacement()
Copyright © 2024 MuleSoft, Inc.. All rights reserved.