org.exoplatform.social.opensocial.oauth
Class ExoOAuthDataStore

java.lang.Object
  extended by org.exoplatform.social.opensocial.oauth.ExoOAuthDataStore
All Implemented Interfaces:
org.apache.shindig.social.opensocial.oauth.OAuthDataStore

public class ExoOAuthDataStore
extends Object
implements org.apache.shindig.social.opensocial.oauth.OAuthDataStore

Created by The eXo Platform SARL Author : dang.tung tungcnw@gmail.com Jul 15, 2009


Constructor Summary
ExoOAuthDataStore(ExoPeopleService peopleService, ExoActivityService activityService, String baseUrl)
           
 
Method Summary
 void authorizeToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry, String userId)
           
 org.apache.shindig.social.opensocial.oauth.OAuthEntry convertToAccessToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry)
           
 void disableToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry)
           
 org.apache.shindig.social.opensocial.oauth.OAuthEntry generateRequestToken(String consumerKey, String oauthVersion, String signedCallbackUrl)
           
 net.oauth.OAuthConsumer getConsumer(String consumerKey)
           
 org.apache.shindig.social.opensocial.oauth.OAuthEntry getEntry(String oauthToken)
           
 ServiceProviderStore getProviderStore()
           
 org.apache.shindig.auth.SecurityToken getSecurityTokenForConsumerRequest(String consumerKey, String userId)
           
 void removeToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry)
           
 void setProviderStore(ServiceProviderStore secretProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExoOAuthDataStore

@Inject
public ExoOAuthDataStore(ExoPeopleService peopleService,
                                ExoActivityService activityService,
                                String baseUrl)
Method Detail

getEntry

public org.apache.shindig.social.opensocial.oauth.OAuthEntry getEntry(String oauthToken)
Specified by:
getEntry in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

getConsumer

public net.oauth.OAuthConsumer getConsumer(String consumerKey)
Specified by:
getConsumer in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

generateRequestToken

public org.apache.shindig.social.opensocial.oauth.OAuthEntry generateRequestToken(String consumerKey,
                                                                                  String oauthVersion,
                                                                                  String signedCallbackUrl)
Specified by:
generateRequestToken in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

convertToAccessToken

public org.apache.shindig.social.opensocial.oauth.OAuthEntry convertToAccessToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry)
Specified by:
convertToAccessToken in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

authorizeToken

public void authorizeToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry,
                           String userId)
Specified by:
authorizeToken in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

disableToken

public void disableToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry)
Specified by:
disableToken in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

removeToken

public void removeToken(org.apache.shindig.social.opensocial.oauth.OAuthEntry entry)
Specified by:
removeToken in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

getSecurityTokenForConsumerRequest

public org.apache.shindig.auth.SecurityToken getSecurityTokenForConsumerRequest(String consumerKey,
                                                                                String userId)
Specified by:
getSecurityTokenForConsumerRequest in interface org.apache.shindig.social.opensocial.oauth.OAuthDataStore

getProviderStore

public ServiceProviderStore getProviderStore()

setProviderStore

public void setProviderStore(ServiceProviderStore secretProvider)


Copyright © 2013 eXo Platform SAS. All Rights Reserved.