|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.http.GenericUrl
com.google.api.client.auth.oauth.AbstractOAuthGetToken
com.google.api.client.auth.oauth.OAuthGetAccessToken
com.google.api.client.googleapis.auth.oauth.GoogleOAuthGetAccessToken
public final class GoogleOAuthGetAccessToken
Generic Google OAuth 1.0a URL to request to exchange the temporary credentials token (or "request token") for a long-lived credentials token (or "access token") from the Google Authorization server.
Use AbstractOAuthGetToken.execute() to execute the request. The long-lived access token acquired with this
request is found in OAuthCredentialsResponse.token . This token must be stored. It may
then be used to authorize HTTP requests to protected resources in Google services by using
OAuthParameters.
To revoke the stored access token, use revokeAccessToken(com.google.api.client.http.HttpTransport, com.google.api.client.auth.oauth.OAuthParameters).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class com.google.api.client.auth.oauth.OAuthGetAccessToken |
|---|
temporaryToken, verifier |
| Fields inherited from class com.google.api.client.auth.oauth.AbstractOAuthGetToken |
|---|
consumerKey, signer, transport, usePost |
| Fields inherited from class com.google.api.client.http.GenericUrl |
|---|
fragment, host, pathParts, port, scheme |
| Fields inherited from class com.google.api.client.util.GenericData |
|---|
unknownFields |
| Constructor Summary | |
|---|---|
GoogleOAuthGetAccessToken()
|
|
| Method Summary | |
|---|---|
static void |
revokeAccessToken(com.google.api.client.http.HttpTransport transport,
com.google.api.client.auth.oauth.OAuthParameters parameters)
Revokes the long-lived access token. |
| Methods inherited from class com.google.api.client.auth.oauth.OAuthGetAccessToken |
|---|
createParameters |
| Methods inherited from class com.google.api.client.auth.oauth.AbstractOAuthGetToken |
|---|
execute |
| Methods inherited from class com.google.api.client.http.GenericUrl |
|---|
appendRawPath, build, clone, equals, getAll, getFirst, getFragment, getHost, getPathParts, getPort, getRawPath, getScheme, hashCode, setFragment, setHost, setPathParts, setPort, setRawPath, setScheme, toPathParts, toString |
| Methods inherited from class com.google.api.client.util.GenericData |
|---|
entrySet, get, getUnknownKeys, put, putAll, remove, set, setUnknownKeys |
| Methods inherited from class java.util.AbstractMap |
|---|
clear, containsKey, containsValue, isEmpty, keySet, size, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GoogleOAuthGetAccessToken()
| Method Detail |
|---|
public static void revokeAccessToken(com.google.api.client.http.HttpTransport transport,
com.google.api.client.auth.oauth.OAuthParameters parameters)
throws IOException
parameters - OAuth parameters
IOException - I/O exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||