org.apache.shindig.gadgets.oauth
Class OAuthFetcherConfig

java.lang.Object
  extended by org.apache.shindig.gadgets.oauth.OAuthFetcherConfig

public class OAuthFetcherConfig
extends Object

Configuration parameters for an OAuthRequest


Field Summary
static String OAUTH_STATE_CRYPTER
           
 
Constructor Summary
OAuthFetcherConfig(BlobCrypter stateCrypter, GadgetOAuthTokenStore tokenStore, TimeSource clock, OAuthCallbackGenerator oauthCallbackGenerator, boolean viewerAccessTokensEnabled)
           
 
Method Summary
 TimeSource getClock()
           
 OAuthCallbackGenerator getOAuthCallbackGenerator()
           
 BlobCrypter getStateCrypter()
           
 GadgetOAuthTokenStore getTokenStore()
           
 boolean isViewerAccessTokensEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OAUTH_STATE_CRYPTER

public static final String OAUTH_STATE_CRYPTER
See Also:
Constant Field Values
Constructor Detail

OAuthFetcherConfig

@Inject
public OAuthFetcherConfig(BlobCrypter stateCrypter,
                                 GadgetOAuthTokenStore tokenStore,
                                 TimeSource clock,
                                 OAuthCallbackGenerator oauthCallbackGenerator,
                                 boolean viewerAccessTokensEnabled)
Method Detail

getStateCrypter

public BlobCrypter getStateCrypter()
Returns:
A BlobCrypter Used to encrypt state stored on the client.

getTokenStore

public GadgetOAuthTokenStore getTokenStore()
Returns:
the persistent token storage.

getClock

public TimeSource getClock()
Returns:
the Clock

getOAuthCallbackGenerator

public OAuthCallbackGenerator getOAuthCallbackGenerator()
Returns:
callback Url generator

isViewerAccessTokensEnabled

public boolean isViewerAccessTokensEnabled()
Returns:
true if the owner pages do not allow user controlled javascript


Copyright © 2007-2012. All Rights Reserved.