|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<S>
S
- the service API typepublic abstract class AbstractOAuth2ServiceProvider<S>
Base class for ServiceProviders that use the OAuth2 protocol.
OAuth2-based ServiceProvider implementations should extend and implement getApi(String)
.
Constructor Summary | |
---|---|
AbstractOAuth2ServiceProvider(OAuth2Operations oauth2Operations)
Create a new OAuth2ServiceProvider . |
Method Summary | |
---|---|
abstract S |
getApi(java.lang.String accessToken)
Returns an API interface allowing the client application to access protected resources on behalf of a user. |
OAuth2Operations |
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 AbstractOAuth2ServiceProvider(OAuth2Operations oauth2Operations)
OAuth2ServiceProvider
.
oauth2Operations
- the OAuth2Operations template for conducting the OAuth 2 flow with the provider.Method Detail |
---|
public final OAuth2Operations getOAuthOperations()
OAuth2ServiceProvider
API binding
.
getOAuthOperations
in interface OAuth2ServiceProvider<S>
public abstract S getApi(java.lang.String accessToken)
OAuth2ServiceProvider
getApi
in interface OAuth2ServiceProvider<S>
accessToken
- the API access token
|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |