org.springframework.social.oauth1
Interface OAuth1ServiceProvider<A>

Type Parameters:
A - The service provider's API type
All Superinterfaces:
ServiceProvider<A>
All Known Implementing Classes:
AbstractOAuth1ServiceProvider, LinkedInServiceProvider, TripItServiceProvider, TwitterServiceProvider

public interface OAuth1ServiceProvider<A>
extends ServiceProvider<A>

A ServiceProvider that uses the OAuth 1.0 protocol.


Method Summary
 A 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.
 OAuth1Operations getOAuthOperations()
          Get the service interface for carrying out the "OAuth dance" with this provider.
 

Method Detail

getOAuthOperations

OAuth1Operations getOAuthOperations()
Get the service interface for carrying out the "OAuth dance" with this provider. The result of the OAuth dance is an access token that can be used to obtain a API binding.


getApi

A 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.

Parameters:
accessToken - the API access token
secret - the access token secret
Returns:
the binding to the service provider's API