Class OAuth2Authentication
java.lang.Object
com.mparticle.sdk.model.registration.authentication.AuthenticationConfiguration
com.mparticle.sdk.model.registration.authentication.OAuth2Authentication
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies how the access token will be provided to the integrationstatic enumNested classes/interfaces inherited from class com.mparticle.sdk.model.registration.authentication.AuthenticationConfiguration
AuthenticationConfiguration.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintsetAccessTokenType(OAuth2Authentication.AccessTokenType accessTokenType) setAuthorizationUrl(String authorizationUrl) setClientId(String clientId) setCustomHeaderName(String customHeaderName) setDefaultExpiresIn(int defaultExpiresIn) setGrantType(OAuth2Authentication.GrantType grantType) setParamClientIdName(String paramClientIdName) setParamSecretName(String paramSecretName) setRefreshUrl(String refreshUrl) setScopes(ScopeDetail[] scopes) setTokenUrl(String tokenUrl) Methods inherited from class com.mparticle.sdk.model.registration.authentication.AuthenticationConfiguration
getType
-
Constructor Details
-
OAuth2Authentication
public OAuth2Authentication()
-
-
Method Details
-
getAuthorizationUrl
- Returns:
- Authorization Url
-
setAuthorizationUrl
- Parameters:
authorizationUrl- Authorization Url- Returns:
- this
-
getRefreshUrl
- Returns:
- Refresh URL
-
setRefreshUrl
- Parameters:
refreshUrl- Refresh URL- Returns:
- this
-
getTokenUrl
- Returns:
- Token Url
-
setTokenUrl
- Parameters:
tokenUrl- Token Url- Returns:
- this
-
getGrantType
- Returns:
- Method used to gain Access Tokens
-
setGrantType
- Parameters:
grantType- Method used to gain Access Tokens- Returns:
- this
-
getDefaultExpiresIn
public int getDefaultExpiresIn()- Returns:
- duration of time the access token is granted for
-
setDefaultExpiresIn
- Parameters:
defaultExpiresIn- duration of time the access token is granted for- Returns:
- this
-
getClientId
- Returns:
- Unique public identifier
-
setClientId
- Parameters:
clientId- Unique public identifier- Returns:
- this
-
getAccessTokenType
- Returns:
- Specifies how the access token will be provided
-
setAccessTokenType
public OAuth2Authentication setAccessTokenType(OAuth2Authentication.AccessTokenType accessTokenType) - Parameters:
accessTokenType- Specifies how the access token will be provided- Returns:
- this
-
getCustomHeaderName
- Returns:
- Name of the custom header for the access token
-
setCustomHeaderName
- Parameters:
customHeaderName- Name of the custom header for the access token- Returns:
- this
-
getParamClientIdName
- Returns:
- Custom name for ClientID
-
setParamClientIdName
- Parameters:
paramClientIdName- Custom name for ClientID- Returns:
- this
-
getParamSecretName
- Returns:
- Custom name for ClientSecret
-
setParamSecretName
- Parameters:
paramSecretName- Custom name for ClientSecret- Returns:
- this
-
getScopes
- Returns:
- Scope to limit an app's access to user account
-
setScopes
- Parameters:
scopes- Scope to limit an app's access to user account- Returns:
- this
-