S - the service API typepublic abstract class AbstractOAuth2ServiceProvider<S> extends Object implements OAuth2ServiceProvider<S>
getApi(String).| Constructor and Description |
|---|
AbstractOAuth2ServiceProvider(OAuth2Operations oauth2Operations)
Create a new
OAuth2ServiceProvider. |
| Modifier and Type | Method and Description |
|---|---|
abstract S |
getApi(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.
|
public AbstractOAuth2ServiceProvider(OAuth2Operations oauth2Operations)
OAuth2ServiceProvider.oauth2Operations - the OAuth2Operations template for conducting the OAuth 2 flow with the provider.public final OAuth2Operations getOAuthOperations()
OAuth2ServiceProviderAPI binding.getOAuthOperations in interface OAuth2ServiceProvider<S>public abstract S getApi(String accessToken)
OAuth2ServiceProvidergetApi in interface OAuth2ServiceProvider<S>accessToken - the API access token