public final class OAuth2Authentication extends AuthenticationConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
OAuth2Authentication.AccessTokenType
Specifies how the access token will be provided to the integration
|
static class |
OAuth2Authentication.GrantType |
AuthenticationConfiguration.Type| Constructor and Description |
|---|
OAuth2Authentication() |
getTypepublic java.lang.String getAuthorizationUrl()
public OAuth2Authentication setAuthorizationUrl(java.lang.String authorizationUrl)
authorizationUrl - Authorization Urlpublic java.lang.String getRefreshUrl()
public OAuth2Authentication setRefreshUrl(java.lang.String refreshUrl)
refreshUrl - Refresh URLpublic java.lang.String getTokenUrl()
public OAuth2Authentication setTokenUrl(java.lang.String tokenUrl)
tokenUrl - Token Urlpublic OAuth2Authentication.GrantType getGrantType()
public OAuth2Authentication setGrantType(OAuth2Authentication.GrantType grantType)
grantType - Method used to gain Access Tokenspublic int getDefaultExpiresIn()
public OAuth2Authentication setDefaultExpiresIn(int defaultExpiresIn)
defaultExpiresIn - duration of time the access token is granted forpublic java.lang.String getClientId()
public OAuth2Authentication setClientId(java.lang.String clientId)
clientId - Unique public identifierpublic OAuth2Authentication.AccessTokenType getAccessTokenType()
public OAuth2Authentication setAccessTokenType(OAuth2Authentication.AccessTokenType accessTokenType)
accessTokenType - Specifies how the access token will be providedpublic java.lang.String getCustomHeaderName()
public OAuth2Authentication setCustomHeaderName(java.lang.String customHeaderName)
customHeaderName - Name of the custom header for the access tokenpublic java.lang.String getParamClientIdName()
public OAuth2Authentication setParamClientIdName(java.lang.String paramClientIdName)
paramClientIdName - Custom name for ClientIDpublic java.lang.String getParamSecretName()
public OAuth2Authentication setParamSecretName(java.lang.String paramSecretName)
paramSecretName - Custom name for ClientSecretpublic ScopeDetail[] getScopes()
public OAuth2Authentication setScopes(ScopeDetail[] scopes)
scopes - Scope to limit an app's access to user account