| Package | Description |
|---|---|
| com.google.gdata.client | |
| com.google.gdata.client.authn.oauth |
| Modifier and Type | Method and Description |
|---|---|
void |
GoogleService.setOAuthCredentials(OAuthParameters parameters,
OAuthSigner signer)
Sets the OAuth credentials used to generate the authorization header.
|
void |
GoogleAuthTokenFactory.setOAuthCredentials(OAuthParameters parameters,
OAuthSigner signer)
Sets the OAuth credentials used to generate the authorization header.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
OAuthParameters.assertExists(String key,
Map<String,String> params)
Checks the given key to see if it exists, and throws an exception if it
does not.
|
void |
OAuthParameters.assertOAuthCallbackExists()
Checks to see if the OAuth callback exists.
|
void |
OAuthParameters.assertOAuthConsumerKeyExists()
Checks to see if the OAuth Consumer Key exists.
|
void |
OAuthParameters.assertOAuthConsumerSecretExists() |
void |
OAuthParameters.assertOAuthNonceExists()
Checks to see if the OAuth nonce exists.
|
void |
OAuthParameters.assertOAuthSignatureExists()
Checks to see if the OAuth signature exists.
|
void |
OAuthParameters.assertOAuthSignatureMethodExists()
Checks to see if the OAuth signature method exists.
|
void |
OAuthParameters.assertOAuthTimestampExists()
Checks to see if the OAuth timestamp exists.
|
void |
OAuthParameters.assertOAuthTokenExists()
Checks to see if the OAuth token exists.
|
void |
OAuthParameters.assertOAuthTokenSecretExists()
Checks to see if the OAuth token secret exists.
|
void |
OAuthParameters.assertOAuthVerifierExists()
Checks to see if the OAuth Verifier exists.
|
void |
OAuthParameters.assertRealmExists()
Checks to see if the realm exists.
|
void |
GoogleOAuthParameters.assertScopeExists()
Checks to see if the scope exists.
|
String |
OAuthHelper.getAccessToken(OAuthParameters oauthParameters)
Exchanges the user-authorized request token for an access token.
|
String |
OAuthHelper.getAccessToken(String queryString,
OAuthParameters oauthParameters)
Exchanges the user-authorized request token for an access token.
|
String |
OAuthHelper.getAccessToken(URL url,
OAuthParameters oauthParameters)
Exchanges the user-authorized request token for an access token.
|
String |
TwoLeggedOAuthHelper.getAuthorizationHeader(String requestUrl,
String httpMethod)
Generates the string to be used as the HTTP authorization header.
|
String |
OAuthHelper.getAuthorizationHeader(String requestUrl,
String httpMethod,
OAuthParameters oauthParameters)
Generates the string to be used as the HTTP authorization header.
|
URL |
OAuthHelper.getOAuthUrl(String baseUrl,
String httpMethod,
OAuthParameters oauthParameters)
Returns a properly formatted and signed OAuth request url, with the
appropriate parameters.
|
String |
OAuthHttpClient.getResponse(URL url)
Makes an http request to the input URL, and returns the response body as a
string.
|
String |
OAuthHttpClient.getResponse(URL url,
Map<String,String> headers)
Makes an http request to the input URL, and returns the response body as a
string.
|
String |
OAuthSigner.getSignature(String baseString,
OAuthParameters oauthParameters)
Signs the input string using the appropriate signature method.
|
String |
OAuthRsaSha1Signer.getSignature(String baseString,
OAuthParameters oauthParameters) |
String |
OAuthHmacSha1Signer.getSignature(String baseString,
OAuthParameters oauthParameters) |
static String |
OAuthUtil.getSignatureBaseString(String requestUrl,
String httpMethod,
Map<String,String> baseParameters)
Calculates the signature base url as per section 9.1 of the OAuth Spec.
|
void |
OAuthHelper.getUnauthorizedRequestToken(OAuthParameters oauthParameters)
Retrieves the unauthorized request token and token secret from the remote
server and sets the parameters in the
OAuthParameters object. |
String |
OAuthHelper.getUserAuthorizationUrl(OAuthParameters oauthParameters)
Deprecated.
|
static String |
OAuthUtil.normalizeUrl(String requestUrl)
Calculates the normalized request url, as per section 9.1.2 of the OAuth
Spec.
|
void |
OAuthHelper.revokeToken(OAuthParameters oauthParameters)
Revokes the user's OAuth token.
|
void |
OAuthRsaSha1Signer.setPrivateKey(PrivateKey privateKey)
Sets the
PrivateKey used to sign requests. |
| Constructor and Description |
|---|
OAuthRsaSha1Signer(byte[] privateKeyBytes)
Sets the RSA-SHA1 private key object used to sign this request.
|
OAuthRsaSha1Signer(PrivateKey privateKey)
Sets the RSA-SHA1 private key object used to sign this request.
|
OAuthRsaSha1Signer(String privateKeyString)
Sets the RSA-SHA1 private key object used to sign this request.
|
Copyright © 2012. All Rights Reserved.