public class OAuthDesktopMobileAuthCodeGrant extends OAuthWithAuthorizationCode
| Modifier and Type | Field and Description |
|---|---|
protected ApiEnvironment |
environment |
protected OAuthTokens |
oAuthTokens
OAuth tokens received from live.com authorization service.
|
| Constructor and Description |
|---|
OAuthDesktopMobileAuthCodeGrant(String clientId)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileAuthCodeGrant(String clientId,
ApiEnvironment env)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileAuthCodeGrant(String clientId,
ApiEnvironment env,
OAuthScope oAuthScope) |
OAuthDesktopMobileAuthCodeGrant(String clientId,
OAuthService oAuthService,
ApiEnvironment env,
OAuthScope oAuthScope) |
OAuthDesktopMobileAuthCodeGrant(String clientId,
OAuthTokens oauthTokens)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileAuthCodeGrant(String clientId,
OAuthTokens oauthTokens,
ApiEnvironment env)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileAuthCodeGrant(String clientId,
OAuthTokens oauthTokens,
ApiEnvironment env,
OAuthScope oAuthScope) |
OAuthDesktopMobileAuthCodeGrant(String clientId,
String refreshToken)
Creates new instance of the class with the specified clientId and refreshToken.
|
OAuthDesktopMobileAuthCodeGrant(String clientId,
String refreshToken,
ApiEnvironment env)
Creates new instance of the class with the specified clientId and refreshToken.
|
OAuthDesktopMobileAuthCodeGrant(String clientId,
String refreshToken,
ApiEnvironment env,
OAuthScope oAuthScope) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeaders(HeadersImpl headersImplementation)
Adds the AuthenticationToken header element for the corresponding bulk file upload operation.
|
String |
getAuthenticationToken() |
ApiEnvironment |
getEnvironment() |
OAuthTokens |
getOAuthTokens()
Gets information about OAuth access tokens received from the Microsoft Account authorization service.
|
String |
getState() |
String |
getTenant() |
void |
setEnvironment(ApiEnvironment environment) |
protected void |
setOAuthTokens(OAuthTokens oAuthTokens)
Sets information about OAuth access tokens received from the Microsoft Account authorization service.
|
void |
setState(String state) |
void |
setTenant(String tenant) |
getAuthorizationEndpoint, getClientId, getClientSecret, getNewTokensListener, getOAuthScope, refreshTokensIfNeeded, requestAccessAndRefreshTokens, requestAccessAndRefreshTokens, requestAccessAndRefreshTokens, setNewTokensListenerprotected OAuthTokens oAuthTokens
OAuthDesktopMobileImplicitGrant and
OAuthWithAuthorizationCodeprotected ApiEnvironment environment
public OAuthDesktopMobileAuthCodeGrant(String clientId, String refreshToken)
clientId - the client identifier corresponding to your registered applicationrefreshToken - the refresh token that should be used to request an access tokenpublic OAuthDesktopMobileAuthCodeGrant(String clientId, String refreshToken, ApiEnvironment env)
clientId - the client identifier corresponding to your registered applicationrefreshToken - the refresh token that should be used to request an access tokenenv - Bing Ads Environmentpublic OAuthDesktopMobileAuthCodeGrant(String clientId)
AuthorizationData object.
See this page for additional information:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId - the client identifier corresponding to your registered applicationpublic OAuthDesktopMobileAuthCodeGrant(String clientId, ApiEnvironment env)
AuthorizationData object.
See this page for additional information:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId - the client identifier corresponding to your registered applicationenv - Bing Ads Environmentpublic OAuthDesktopMobileAuthCodeGrant(String clientId, OAuthTokens oauthTokens)
AuthorizationData object.
See this page for additional information:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId - the client identifier corresponding to your registered applicationoauthTokens - contains information about OAuth access tokens received from the Microsoft Account authorization servicepublic OAuthDesktopMobileAuthCodeGrant(String clientId, OAuthTokens oauthTokens, ApiEnvironment env)
AuthorizationData object.
See this page for additional information:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId - the client identifier corresponding to your registered applicationoauthTokens - contains information about OAuth access tokens received from the Microsoft Account authorization servicepublic OAuthDesktopMobileAuthCodeGrant(String clientId, OAuthService oAuthService, ApiEnvironment env, OAuthScope oAuthScope)
public OAuthDesktopMobileAuthCodeGrant(String clientId, String refreshToken, ApiEnvironment env, OAuthScope oAuthScope)
public OAuthDesktopMobileAuthCodeGrant(String clientId, OAuthTokens oauthTokens, ApiEnvironment env, OAuthScope oAuthScope)
public OAuthDesktopMobileAuthCodeGrant(String clientId, ApiEnvironment env, OAuthScope oAuthScope)
public void setTenant(String tenant)
public String getTenant()
public void setState(String state)
public String getState()
public OAuthTokens getOAuthTokens()
protected void setOAuthTokens(OAuthTokens oAuthTokens)
public String getAuthenticationToken()
public void addHeaders(HeadersImpl headersImplementation)
addHeaders in class AuthenticationheadersImplementation - the headers collection to which authentication requests should be addedpublic ApiEnvironment getEnvironment()
getEnvironment in class Authenticationpublic void setEnvironment(ApiEnvironment environment)
Copyright © 2024. All rights reserved.