|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.oauth1.AbstractOAuth1ServiceProvider<S>
S
- the service API typepublic abstract class AbstractOAuth1ServiceProvider<S>
Base class for ServiceProviders that use the OAuth1 protocol.
OAuth1-based ServiceProvider implementors should extend and implement 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 Summary | |
---|---|
AbstractOAuth1ServiceProvider(java.lang.String consumerKey,
java.lang.String consumerSecret,
OAuth1Operations oauth1Operations)
Creates a OAuth1ServiceProvider. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public final OAuth1Operations getOAuthOperations()
OAuth1ServiceProvider
API binding
.
getOAuthOperations
in interface OAuth1ServiceProvider<S>
public abstract S getApi(java.lang.String accessToken, java.lang.String secret)
OAuth1ServiceProvider
getApi
in interface OAuth1ServiceProvider<S>
accessToken
- the API access tokensecret
- the access token secret
protected final java.lang.String getConsumerKey()
getApi(String, String)
protected final java.lang.String getConsumerSecret()
getApi(String, String)
|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |