See: Description
| Interface | Description |
|---|---|
| OAuthSigner |
OAuth signature method.
|
| Class | Description |
|---|---|
| AbstractOAuthGetToken |
Generic OAuth 1.0a URL to request a temporary or long-lived token from an authorization server.
|
| OAuthAuthorizeTemporaryTokenUrl |
OAuth 1.0a URL builder for an authorization web page to allow the end user to authorize the
temporary token.
|
| OAuthCallbackUrl |
Generic URL that parses the callback URL after a temporary token has been authorized by the end
user.
|
| OAuthCredentialsResponse |
Data to parse a success response to a request for temporary or token credentials.
|
| OAuthGetAccessToken |
Generic 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 an authorization server.
|
| OAuthGetTemporaryToken |
Generic OAuth 1.0a URL to request a temporary credentials token (or "request token") from an
authorization server.
|
| OAuthHmacSigner |
OAuth
"HMAC-SHA1" signature method. |
| OAuthParameters |
OAuth 1.0a parameter manager.
|
| OAuthRsaSigner |
OAuth
"RSA-SHA1" signature method. |
There are a few features not supported by this implementation:
PLAINTEXT signature algorithm"application/x-www-form-urlencoded" HTTP request body"oauth_*" parameters specified in the HTTP request URL (instead assumes they are
specified in the Authorization header)Before using this library, you may need to set up your application as follows:
consumerKey on every OAuth request, for example
in AbstractOAuthGetToken.consumerKey.OAuthHmacSigner.clientSharedSecret when using the "HMAC-SHA1" signature method."HMAC-SHA1" signature method. The documentation for the
authorization server will need to provide you with the consumerKey and clientSharedSecret to use."HMAC-SHA1" signature method, use
OAuthHmacSigner."RSA-SHA1" signature method, use
OAuthRsaSigner.After the set up has been completed, the typical application flow is:
OAuthGetTemporaryToken. A callback URL should be
specified for web applications, but does not need to be specified for installed applications.
OAuthAuthorizeTemporaryTokenUrl.OAuthCallbackUrl.OAuthGetAccessToken. This access token must
be stored.OAuthParameters.token and using
OAuthParameters as the
HttpRequestInitializer.Warning: this package is experimental, and its content may be changed in incompatible ways or possibly entirely removed in a future version of the library
Copyright © 2011-2013 Google. All Rights Reserved.