public final class OAuthHmacCredential implements Credential, InstanceCallbacksBeta
OAuth 1 credential which uses the OAuthHmacSigner to sign requests.
This class is both immutable and thread safe.
Constructors
OAuthHmacCredential(String userId, String consumerKey, String sharedSecret, String tokenSharedSecret, String token)
public OAuthHmacCredential(String userId, String consumerKey, String sharedSecret, String tokenSharedSecret, String token)Create an OAuth 1 credential object from information obtained from the server.
| Name | Description |
| userId | StringUser ID key that can be used to associate this credential with a user. |
| consumerKey | StringKey that identifies the server to the service provider. |
| sharedSecret | StringSecret that the server shares with the service provider. |
| tokenSharedSecret | StringToken secret that server uses to authenticate the requests. |
| token | StringToken that has been authorized by the end user to allow the server to access the
resources or |
Methods
handleResponse(HttpRequest request, HttpResponse response, boolean retrySupported)
public boolean handleResponse(HttpRequest request, HttpResponse response, boolean retrySupported)| Name | Description |
| request | com.google.api.client.http.HttpRequest |
| response | com.google.api.client.http.HttpResponse |
| retrySupported | boolean |
| Type | Description |
| boolean |
initialize(HttpRequest request)
public void initialize(HttpRequest request)| Name | Description |
| request | com.google.api.client.http.HttpRequest |
| Type | Description |
| IOException |
intercept(HttpRequest request)
public void intercept(HttpRequest request)| Name | Description |
| request | com.google.api.client.http.HttpRequest |
| Type | Description |
| IOException |
isInvalid()
public boolean isInvalid()Determine if the Credential is no longer valid, after being revoked for example.
| Type | Description |
| boolean |
jdoPostLoad()
public void jdoPostLoad()jdoPreClear()
public void jdoPreClear()jdoPreDelete()
public void jdoPreDelete()jdoPreStore()
public void jdoPreStore()