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 |
|---|---|
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 String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectpublic String getAccessTokenUrl()
public String getAuthorizationUrl()
public String getAccessTokenExpr()
accessTokenUrl responsepublic String getExpirationRegex()
accessTokenUrl responsepublic String getRefreshTokenExpr()
accessTokenUrl responseCopyright © 2017 MuleSoft, Inc.. All rights reserved.