com.google.api.ads.common.lib.auth
Class OAuth2AuthorizationHeaderProvider

java.lang.Object
  extended by com.google.api.ads.common.lib.auth.OAuth2AuthorizationHeaderProvider

public class OAuth2AuthorizationHeaderProvider
extends Object

OAuth2 authorization header provider.

Author:
Adam Rogal

Constructor Summary
OAuth2AuthorizationHeaderProvider()
          Constructor.
 
Method Summary
 String getOAuth2AuthorizationHeader(OAuth2Compatible oAuth2Compatible)
          Gets the OAuth2 authorization header for the parameters and request URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2AuthorizationHeaderProvider

public OAuth2AuthorizationHeaderProvider()
Constructor.

Method Detail

getOAuth2AuthorizationHeader

public String getOAuth2AuthorizationHeader(OAuth2Compatible oAuth2Compatible)
Gets the OAuth2 authorization header for the parameters and request URL.

Parameters:
oAuth2Compatible - exposes the OAuth2 credentials
Returns:
the Authorization header value to set


Copyright © 2012. All Rights Reserved.