org.springframework.social.github.connect
Class GitHubServiceProvider

java.lang.Object
  extended by org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<GitHubApi>
      extended by org.springframework.social.github.connect.GitHubServiceProvider
All Implemented Interfaces:
OAuth2ServiceProvider<GitHubApi>, ServiceProvider<GitHubApi>

public class GitHubServiceProvider
extends AbstractOAuth2ServiceProvider<GitHubApi>

Github ServiceProvider implementation.


Constructor Summary
GitHubServiceProvider(java.lang.String clientId, java.lang.String clientSecret)
           
 
Method Summary
 GitHubApi getApi(java.lang.String accessToken)
          Returns an API interface allowing the client application to access protected resources on behalf of a user.
 
Methods inherited from class org.springframework.social.oauth2.AbstractOAuth2ServiceProvider
getOAuthOperations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitHubServiceProvider

public GitHubServiceProvider(java.lang.String clientId,
                             java.lang.String clientSecret)
Method Detail

getApi

public GitHubApi getApi(java.lang.String accessToken)
Description copied from interface: OAuth2ServiceProvider
Returns an API interface allowing the client application to access protected resources on behalf of a user.

Specified by:
getApi in interface OAuth2ServiceProvider<GitHubApi>
Specified by:
getApi in class AbstractOAuth2ServiceProvider<GitHubApi>
Parameters:
accessToken - the API access token
Returns:
a binding to the service provider's API