public final class AuthorizationCodeGrantType extends Object implements OAuthGrantType
| Constructor and Description |
|---|
AuthorizationCodeGrantType(String accessTokenUrl,
String authorizationUrl,
String accessTokenExpr,
String expirationRegex,
String refreshTokenExpr,
String defaultScope)
Creates a new instance
|
AuthorizationCodeGrantType(String accessTokenUrl,
String authorizationUrl,
String accessTokenExpr,
String expirationRegex,
String refreshTokenExpr,
String defaultScope,
CredentialsPlacement credentialsPlacement,
boolean includeRedirectUriInRefreshTokenRequest)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OAuthGrantTypeVisitor visitor)
Accepts a visitor
|
String |
getAccessTokenExpr() |
String |
getAccessTokenUrl() |
String |
getAuthorizationUrl() |
CredentialsPlacement |
getCredentialsPlacement() |
Optional<String> |
getDefaultScope() |
String |
getExpirationRegex() |
String |
getName() |
String |
getRefreshTokenExpr() |
boolean |
includeRedirectUriInRefreshTokenRequest() |
public static final String NAME
public AuthorizationCodeGrantType(String accessTokenUrl, String authorizationUrl, String accessTokenExpr, String expirationRegex, String refreshTokenExpr, String defaultScope)
accessTokenUrl - The url of the access token endpointauthorizationUrl - The url of the authorization endpoint which initiates the danceaccessTokenExpr - Expression used to extract the access token from the accessTokenUrl responseexpirationRegex - Expression used to extract the expiration from the accessTokenUrl responserefreshTokenExpr - Expression used to extract the refresh token from the accessTokenUrl responsedefaultScope - The default scopes to be requestpublic AuthorizationCodeGrantType(String accessTokenUrl, String authorizationUrl, String accessTokenExpr, String expirationRegex, String refreshTokenExpr, String defaultScope, CredentialsPlacement credentialsPlacement, boolean includeRedirectUriInRefreshTokenRequest)
accessTokenUrl - The url of the access token endpointauthorizationUrl - The url of the authorization endpoint which initiates the danceaccessTokenExpr - Expression used to extract the access token from the accessTokenUrl
responseexpirationRegex - Expression used to extract the expiration from the accessTokenUrl
responserefreshTokenExpr - Expression used to extract the refresh token from the accessTokenUrl
responsedefaultScope - The default scopes to be requestcredentialsPlacement - The place where the credentials will be sent on the token requestincludeRedirectUriInRefreshTokenRequest - Indicates whether the redirect_uri parameter should be included in the refresh
token requestpublic void accept(OAuthGrantTypeVisitor visitor)
OAuthGrantTypeaccept in interface OAuthGrantTypevisitor - an OAuthGrantTypeVisitorpublic String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectpublic String getAccessTokenUrl()
public String getAuthorizationUrl()
public String getAccessTokenExpr()
getAccessTokenExpr in interface OAuthGrantTypeaccessTokenUrl responsepublic String getExpirationRegex()
getExpirationRegex in interface OAuthGrantTypeaccessTokenUrl responsepublic String getRefreshTokenExpr()
accessTokenUrl responsepublic Optional<String> getDefaultScope()
public CredentialsPlacement getCredentialsPlacement()
public boolean includeRedirectUriInRefreshTokenRequest()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.