本文整理汇总了Java中org.apache.shindig.gadgets.oauth.OAuthFetcherConfig类的典型用法代码示例。如果您正苦于以下问题:Java OAuthFetcherConfig类的具体用法?Java OAuthFetcherConfig怎么用?Java OAuthFetcherConfig使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OAuthFetcherConfig类属于org.apache.shindig.gadgets.oauth包,在下文中一共展示了OAuthFetcherConfig类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import org.apache.shindig.gadgets.oauth.OAuthFetcherConfig; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void configure() {
bind(BlobCrypter.class).annotatedWith(Names.named(OAuthFetcherConfig.OAUTH_STATE_CRYPTER))
.toProvider(OAuthModule.OAuthCrypterProvider.class);
bind(OAuthRequest.class).toProvider(OAuthModule.OAuthRequestProvider.class);
//Required for SampleOAuthDataStore
bind(String.class).annotatedWith(Names.named("shindig.canonical.json.db"))
.toInstance("sampledata/canonicaldb.json");
bind(OAuthDataStore.class).to(SampleOAuthDataStore.class);
}
示例2: MakeRequestClient
import org.apache.shindig.gadgets.oauth.OAuthFetcherConfig; //导入依赖的package包/类
/**
* Create a make request client with the given security token, sending requests through an
* OAuth fetcher to an OAuth service provider.
*
* @param securityToken identity of the user.
* @param fetcherConfig configuration for the OAuthRequest
* @param serviceProvider service provider being targeted.
* @param serviceName nickname for the service being accessed.
*/
public MakeRequestClient(SecurityToken securityToken, OAuthFetcherConfig fetcherConfig,
FakeOAuthServiceProvider serviceProvider, String serviceName) {
this.securityToken = securityToken;
this.fetcherConfig = fetcherConfig;
this.serviceProvider = serviceProvider;
this.serviceName = serviceName;
this.baseArgs = makeNonSocialOAuthArguments();
this.ignoreCache = false;
}
示例3: setStateCrypter
import org.apache.shindig.gadgets.oauth.OAuthFetcherConfig; //导入依赖的package包/类
@Inject
public void setStateCrypter(@Named(OAuthFetcherConfig.OAUTH_STATE_CRYPTER) BlobCrypter stateCrypter) {
this.stateCrypter = stateCrypter;
}
示例4: setStateCrypter
import org.apache.shindig.gadgets.oauth.OAuthFetcherConfig; //导入依赖的package包/类
@Inject
public void setStateCrypter(
@Named(OAuthFetcherConfig.OAUTH_STATE_CRYPTER) BlobCrypter stateCrypter) {
this.stateCrypter = stateCrypter;
}