Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.shindig.oauth
Class NXGadgetOAuthTokenStore

java.lang.Object
  extended by org.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore
      extended by org.nuxeo.opensocial.shindig.oauth.NXGadgetOAuthTokenStore

public class NXGadgetOAuthTokenStore
extends org.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore

Override the default GadgetOAuthTokenStore to add management for Shindig to Nuxeo local communication. Basically if no OAuth config was found for a local request, we use the shared key between Shindig and Nuxeo to do Sign Fetch

Author:
tiry

Constructor Summary
NXGadgetOAuthTokenStore(org.apache.shindig.gadgets.oauth.OAuthStore store, org.apache.shindig.gadgets.GadgetSpecFactory specFactory)
           
 
Method Summary
 org.apache.shindig.gadgets.oauth.AccessorInfo getOAuthAccessor(org.apache.shindig.auth.SecurityToken securityToken, org.apache.shindig.gadgets.oauth.OAuthArguments arguments, org.apache.shindig.gadgets.oauth.OAuthClientState clientState, org.apache.shindig.gadgets.oauth.OAuthResponseParams responseParams, org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig)
           
 
Methods inherited from class org.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore
removeToken, storeTokenKeyAndSecret
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXGadgetOAuthTokenStore

@Inject
public NXGadgetOAuthTokenStore(org.apache.shindig.gadgets.oauth.OAuthStore store,
                                      org.apache.shindig.gadgets.GadgetSpecFactory specFactory)
Method Detail

getOAuthAccessor

public org.apache.shindig.gadgets.oauth.AccessorInfo getOAuthAccessor(org.apache.shindig.auth.SecurityToken securityToken,
                                                                      org.apache.shindig.gadgets.oauth.OAuthArguments arguments,
                                                                      org.apache.shindig.gadgets.oauth.OAuthClientState clientState,
                                                                      org.apache.shindig.gadgets.oauth.OAuthResponseParams responseParams,
                                                                      org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig)
                                                               throws org.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestException
Overrides:
getOAuthAccessor in class org.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore
Throws:
org.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.