S - the service API typepublic abstract class AbstractOAuth1ServiceProvider<S> extends Object implements OAuth1ServiceProvider<S>
getApi(String, String).
They should also define a single constructor that accepts the consumerKey/consumerSecret
and internally creates and passes up a OAuth1Operations instance.| Constructor and Description |
|---|
AbstractOAuth1ServiceProvider(String consumerKey,
String consumerSecret,
OAuth1Operations oauth1Operations)
Creates a OAuth1ServiceProvider.
|
| Modifier and Type | Method and Description |
|---|---|
abstract S |
getApi(String accessToken,
String secret)
Returns an API interface allowing the client application to access protected resources on behalf of a user.
|
protected String |
getConsumerKey()
The consumer (or client) key assigned to the application by the provider.
|
protected String |
getConsumerSecret()
The consumer (or client) secret assigned to the application by the provider.
|
OAuth1Operations |
getOAuthOperations()
Get the service interface for carrying out the "OAuth dance" with this provider.
|
public AbstractOAuth1ServiceProvider(String consumerKey, String consumerSecret, OAuth1Operations oauth1Operations)
consumerKey - the consumer (or client) key assigned to the application by the provider.consumerSecret - the consumer (or client) secret assigned to the application by the provider.oauth1Operations - the template that allows the OAuth1-based authorization flow to be conducted with the provider.public final OAuth1Operations getOAuthOperations()
OAuth1ServiceProviderAPI binding.getOAuthOperations in interface OAuth1ServiceProvider<S>public abstract S getApi(String accessToken, String secret)
OAuth1ServiceProvidergetApi in interface OAuth1ServiceProvider<S>accessToken - the API access tokensecret - the access token secretprotected final String getConsumerKey()
getApi(String, String)protected final String getConsumerSecret()
getApi(String, String)