Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.shindig.oauth
Class NXOAuthStore

java.lang.Object
  extended by org.apache.shindig.gadgets.oauth.BasicOAuthStore
      extended by org.nuxeo.opensocial.shindig.oauth.NXOAuthStore
All Implemented Interfaces:
org.apache.shindig.gadgets.oauth.OAuthStore

public class NXOAuthStore
extends org.apache.shindig.gadgets.oauth.BasicOAuthStore

Forwards calls for OAuth Token storage to Nuxeo OAuth Services

Author:
tiry

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.gadgets.oauth.OAuthStore
org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo, org.apache.shindig.gadgets.oauth.OAuthStore.TokenInfo
 
Constructor Summary
NXOAuthStore()
           
 
Method Summary
 org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo getConsumerKeyAndSecret(org.apache.shindig.auth.SecurityToken securityToken, String serviceName, net.oauth.OAuthServiceProvider provider)
           
 org.apache.shindig.gadgets.oauth.OAuthStore.TokenInfo getTokenInfo(org.apache.shindig.auth.SecurityToken securityToken, org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo consumerInfo, String serviceName, String tokenName)
           
 void removeToken(org.apache.shindig.auth.SecurityToken securityToken, org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo consumerInfo, String serviceName, String tokenName)
           
 void setDefaultCallbackUrl(String defaultCallbackUrl)
           
 void setDefaultKey(org.apache.shindig.gadgets.oauth.BasicOAuthStoreConsumerKeyAndSecret defaultKey)
           
 void setTokenInfo(org.apache.shindig.auth.SecurityToken securityToken, org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo consumerInfo, String serviceName, String tokenName, org.apache.shindig.gadgets.oauth.OAuthStore.TokenInfo tokenInfo)
           
 
Methods inherited from class org.apache.shindig.gadgets.oauth.BasicOAuthStore
convertFromOpenSsl, getAccessTokenAddCount, getAccessTokenLookupCount, getAccessTokenRemoveCount, getConsumerKeyLookupCount, initFromConfigString, setConsumerKeyAndSecret
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXOAuthStore

public NXOAuthStore()
Method Detail

setDefaultKey

public void setDefaultKey(org.apache.shindig.gadgets.oauth.BasicOAuthStoreConsumerKeyAndSecret defaultKey)
Overrides:
setDefaultKey in class org.apache.shindig.gadgets.oauth.BasicOAuthStore

setDefaultCallbackUrl

public void setDefaultCallbackUrl(String defaultCallbackUrl)
Overrides:
setDefaultCallbackUrl in class org.apache.shindig.gadgets.oauth.BasicOAuthStore

getConsumerKeyAndSecret

public org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo getConsumerKeyAndSecret(org.apache.shindig.auth.SecurityToken securityToken,
                                                                                        String serviceName,
                                                                                        net.oauth.OAuthServiceProvider provider)
                                                                                 throws org.apache.shindig.gadgets.GadgetException
Specified by:
getConsumerKeyAndSecret in interface org.apache.shindig.gadgets.oauth.OAuthStore
Overrides:
getConsumerKeyAndSecret in class org.apache.shindig.gadgets.oauth.BasicOAuthStore
Throws:
org.apache.shindig.gadgets.GadgetException

getTokenInfo

public org.apache.shindig.gadgets.oauth.OAuthStore.TokenInfo getTokenInfo(org.apache.shindig.auth.SecurityToken securityToken,
                                                                          org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo consumerInfo,
                                                                          String serviceName,
                                                                          String tokenName)
Specified by:
getTokenInfo in interface org.apache.shindig.gadgets.oauth.OAuthStore
Overrides:
getTokenInfo in class org.apache.shindig.gadgets.oauth.BasicOAuthStore

setTokenInfo

public void setTokenInfo(org.apache.shindig.auth.SecurityToken securityToken,
                         org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo consumerInfo,
                         String serviceName,
                         String tokenName,
                         org.apache.shindig.gadgets.oauth.OAuthStore.TokenInfo tokenInfo)
Specified by:
setTokenInfo in interface org.apache.shindig.gadgets.oauth.OAuthStore
Overrides:
setTokenInfo in class org.apache.shindig.gadgets.oauth.BasicOAuthStore

removeToken

public void removeToken(org.apache.shindig.auth.SecurityToken securityToken,
                        org.apache.shindig.gadgets.oauth.OAuthStore.ConsumerInfo consumerInfo,
                        String serviceName,
                        String tokenName)
Specified by:
removeToken in interface org.apache.shindig.gadgets.oauth.OAuthStore
Overrides:
removeToken in class org.apache.shindig.gadgets.oauth.BasicOAuthStore

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.