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
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OAuthGrantTypeVisitor visitor)
Accepts a visitor
|
String |
getAccessTokenExpr() |
String |
getAccessTokenUrl() |
String |
getAuthorizationUrl() |
Optional<String> |
getDefaultScope() |
String |
getExpirationRegex() |
String |
getName() |
String |
getRefreshTokenExpr() |
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 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 responseCopyright © 2020 MuleSoft, Inc.. All rights reserved.