public class OAuthDesktopMobileImplicitGrant extends OAuthImplicitGrant
| Modifier and Type | Field and Description |
|---|---|
protected ApiEnvironment |
environment |
protected OAuthTokens |
oAuthTokens
OAuth tokens received from live.com authorization service.
|
| Constructor and Description |
|---|
OAuthDesktopMobileImplicitGrant(String clientId)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileImplicitGrant(String clientId,
ApiEnvironment env)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileImplicitGrant(String clientId,
OAuthTokens oauthTokens)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileImplicitGrant(String clientId,
OAuthTokens oauthTokens,
ApiEnvironment env)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthDesktopMobileImplicitGrant(String clientId,
OAuthTokens oauthTokens,
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) |
extractAccessTokenFromUrl, getAuthorizationEndpointprotected OAuthTokens oAuthTokens
OAuthDesktopMobileImplicitGrant and
OAuthWithAuthorizationCodeprotected ApiEnvironment environment
public OAuthDesktopMobileImplicitGrant(String clientId)
AuthorizationData object. See this page for additional
information on these values:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId - the client identifier corresponding to your registered applicationpublic OAuthDesktopMobileImplicitGrant(String clientId, ApiEnvironment env)
AuthorizationData object. See this page for additional
information on these values:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId - the client identifier corresponding to your registered applicationenv - Bing Ads Environmentpublic OAuthDesktopMobileImplicitGrant(String clientId, OAuthTokens oauthTokens)
AuthorizationData object. See this page for additional
information on these values:
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 OAuthDesktopMobileImplicitGrant(String clientId, OAuthTokens oauthTokens, ApiEnvironment env)
AuthorizationData object. See this page for additional
information on these values:
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 serviceenv - Bing Ads Environmentpublic OAuthDesktopMobileImplicitGrant(String clientId, OAuthTokens oauthTokens, 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.