S - the service API typepublic abstract class AbstractOAuth1ServiceProvider<S> extends java.lang.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(java.lang.String consumerKey,
java.lang.String consumerSecret,
OAuth1Operations oauth1Operations)
Creates a OAuth1ServiceProvider.
|
| Modifier and Type | Method and Description |
|---|---|
abstract S |
getApi(java.lang.String accessToken,
java.lang.String secret)
Returns an API interface allowing the client application to access protected resources on behalf of a user.
|
protected java.lang.String |
getConsumerKey()
The consumer (or client) key assigned to the application by the provider.
|
protected java.lang.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(java.lang.String consumerKey,
java.lang.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(java.lang.String accessToken, java.lang.String secret)
OAuth1ServiceProvidergetApi in interface OAuth1ServiceProvider<S>accessToken - the API access tokensecret - the access token secretprotected final java.lang.String getConsumerKey()
getApi(String, String)protected final java.lang.String getConsumerSecret()
getApi(String, String)