public class OAuthAuthorizationHeaderProvider extends Object
| Constructor and Description |
|---|
OAuthAuthorizationHeaderProvider(String requestMethod)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOAuthAuthorizationHeader(OAuthCompatible oAuthCompatible,
com.google.api.client.http.GenericUrl requestUrl)
Gets the OAuth authorization header for the parameters and request URL.
|
@Inject public OAuthAuthorizationHeaderProvider(String requestMethod)
requestMethod - the request method that will be authenticated againstpublic String getOAuthAuthorizationHeader(OAuthCompatible oAuthCompatible, com.google.api.client.http.GenericUrl requestUrl) throws OAuthException
oAuthCompatible - exposes the OAuth parametersrequestUrl - the request URLAuthorization header value to setOAuthException - if the OAuth header could not be createdCopyright © 2012. All Rights Reserved.