com.googlecode.googleplus
Class GooglePlusFactory

java.lang.Object
  extended by org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Plus>
      extended by com.googlecode.googleplus.GooglePlusFactory
All Implemented Interfaces:
org.springframework.social.oauth2.OAuth2ServiceProvider<Plus>, org.springframework.social.ServiceProvider<Plus>

public class GooglePlusFactory
extends org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Plus>

Suitable for direct use - if you are using Spring Social configuration builder see GooglePlusConnectionFactory.


Nested Class Summary
 class GooglePlusFactory.DefaultOAuth2RefreshCallback
           
 
Constructor Summary
GooglePlusFactory(String clientId, String clientSecret)
           
GooglePlusFactory(String clientId, String clientSecret, GooglePlusConfiguration config)
           
 
Method Summary
 Plus getApi(String accessToken)
          Deprecated. This method does not support token refreshing. Use getApi(accessToken, refreshToken, listener) instead.
 Plus getApi(String accessToken, String refreshToken, OAuth2RefreshListener listener)
           
 
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

GooglePlusFactory

public GooglePlusFactory(String clientId,
                         String clientSecret,
                         GooglePlusConfiguration config)

GooglePlusFactory

public GooglePlusFactory(String clientId,
                         String clientSecret)
Method Detail

getApi

@Deprecated
public Plus getApi(String accessToken)
Deprecated. This method does not support token refreshing. Use getApi(accessToken, refreshToken, listener) instead.

Specified by:
getApi in interface org.springframework.social.oauth2.OAuth2ServiceProvider<Plus>
Specified by:
getApi in class org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Plus>

getApi

public Plus getApi(String accessToken,
                   String refreshToken,
                   OAuth2RefreshListener listener)


Copyright © 2014. All Rights Reserved.