|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.auth.oauth2.AccessProtectedResource
AccessProtectedResource
@Deprecated public final class AccessProtectedResource
OAuth 2.0 methods for specifying the access token parameter as specified in Accessing a Protected Resource.
| Method Summary | |
|---|---|
static void |
usingAuthorizationHeader(HttpTransport transport,
String accessToken)
Deprecated. Sets the "Authorization" header using the given access token for every executed HTTP
request for the given HTTP transport. |
static void |
usingFormEncodedBody(HttpTransport transport,
String accessToken)
Deprecated. Sets the "oauth_token" parameter in the form-encoded HTTP body using the given access
token for every executed HTTP request for the given HTTP transport. |
static void |
usingQueryParameter(HttpTransport transport,
String accessToken)
Deprecated. Sets the "oauth_token" URI query parameter using the given access token for every
executed HTTP request for the given HTTP transport. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void usingAuthorizationHeader(HttpTransport transport,
String accessToken)
"Authorization" header using the given access token for every executed HTTP
request for the given HTTP transport.
Any existing HTTP request execute intercepters for setting the OAuth 2 access token will be removed.
transport - HTTP transportaccessToken - access token
public static void usingQueryParameter(HttpTransport transport,
String accessToken)
"oauth_token" URI query parameter using the given access token for every
executed HTTP request for the given HTTP transport.
Any existing HTTP request execute intercepters for setting the OAuth 2 access token will be removed.
transport - HTTP transportaccessToken - access token
public static void usingFormEncodedBody(HttpTransport transport,
String accessToken)
"oauth_token" parameter in the form-encoded HTTP body using the given access
token for every executed HTTP request for the given HTTP transport.
Any existing HTTP request execute intercepters for setting the OAuth 2 access token will be removed. Requirements:
null or UrlEncodedContent.UrlEncodedContent.data must be null or GenericData.
transport - HTTP transportaccessToken - access token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||