public class OAuthWebAuthCodeGrant 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 |
---|
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
ApiEnvironment env)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
ApiEnvironment env,
OAuthScope oAuthScope)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUri,
OAuthService oAuthService,
ApiEnvironment env,
OAuthScope oAuthScope)
Creates new instance of the class with a specified OAuthService object.
|
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUri,
OAuthService oAuthService,
OAuthScope oAuthScope)
Creates new instance of the class with a specified OAuthService object.
|
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
OAuthTokens oauthTokens)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
OAuthTokens oauthTokens,
ApiEnvironment env)
Creates new instance of the class that can be used in the
AuthorizationData object. |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
OAuthTokens oauthTokens,
ApiEnvironment env,
OAuthScope oAuthScope) |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
String refreshToken) |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
String refreshToken,
ApiEnvironment env) |
OAuthWebAuthCodeGrant(String clientId,
String clientSecret,
URL redirectionUrl,
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, setNewTokensListener
protected OAuthTokens oAuthTokens
OAuthDesktopMobileImplicitGrant
and
OAuthWithAuthorizationCode
protected ApiEnvironment environment
public OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, String refreshToken)
public OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, String refreshToken, ApiEnvironment env)
public OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, String refreshToken, ApiEnvironment env, OAuthScope oAuthScope)
public OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl)
AuthorizationData
object.
See this page for additional information on these values:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId
- client idclientSecret
- client secretredirectionUrl
- redirect URLpublic OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, 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
- client idclientSecret
- client secretredirectionUrl
- redirect URLenv
- Bing Ads Environmentpublic OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, ApiEnvironment env, OAuthScope oAuthScope)
AuthorizationData
object.
See this page for additional information on these values:
https://docs.microsoft.com/en-us/bingads/guides/authentication-oauth?view=bingads-12clientId
- client idclientSecret
- client secretredirectionUrl
- redirect URLenv
- Bing Ads EnvironmentoAuthScope
- OAuth Scopepublic OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, 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
- client idclientSecret
- client secretredirectionUrl
- redirect URLoauthTokens
- contains information about OAuth access tokens received from the Microsoft Account authorization servicepublic OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, 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
- client idclientSecret
- client secretredirectionUrl
- redirect URLoauthTokens
- contains information about OAuth access tokens received from the Microsoft Account authorization serviceenv
- Bing Ads Environmentpublic OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUrl, OAuthTokens oauthTokens, ApiEnvironment env, OAuthScope oAuthScope)
public OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUri, OAuthService oAuthService, OAuthScope oAuthScope)
clientId
- client idclientSecret
- client secretredirectionUri
- redirect URLoAuthService
- custom OAuthService
objectoAuthScope
- OAuth Scopepublic OAuthWebAuthCodeGrant(String clientId, String clientSecret, URL redirectionUri, OAuthService oAuthService, ApiEnvironment env, OAuthScope oAuthScope)
clientId
- client idclientSecret
- client secretredirectionUri
- redirect URLoAuthService
- custom OAuthService
objectenv
- Bing Ads EnvironmentoAuthScope
- OAuth Scopepublic 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 Authentication
headersImplementation
- the headers collection to which authentication requests should be addedpublic ApiEnvironment getEnvironment()
getEnvironment
in class Authentication
public void setEnvironment(ApiEnvironment environment)
Copyright © 2024. All rights reserved.