当前位置: 首页>>代码示例>>Java>>正文


Java OAuthFetcherConfig类代码示例

本文整理汇总了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);
}
 
开发者ID:apache,项目名称:rave,代码行数:15,代码来源:OAuthGuiceModule.java

示例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;
}
 
开发者ID:inevo,项目名称:shindig-1.1-BETA5-incubating,代码行数:19,代码来源:MakeRequestClient.java

示例3: setStateCrypter

import org.apache.shindig.gadgets.oauth.OAuthFetcherConfig; //导入依赖的package包/类
@Inject
public void setStateCrypter(@Named(OAuthFetcherConfig.OAUTH_STATE_CRYPTER) BlobCrypter stateCrypter) {
    this.stateCrypter = stateCrypter;
}
 
开发者ID:devacfr,项目名称:spring-restlet,代码行数:5,代码来源:OAuthCallbackResource.java

示例4: setStateCrypter

import org.apache.shindig.gadgets.oauth.OAuthFetcherConfig; //导入依赖的package包/类
@Inject
public void setStateCrypter(
    @Named(OAuthFetcherConfig.OAUTH_STATE_CRYPTER) BlobCrypter stateCrypter) {
  this.stateCrypter = stateCrypter;
}
 
开发者ID:inevo,项目名称:shindig-1.1-BETA5-incubating,代码行数:6,代码来源:OAuthCallbackServlet.java


注:本文中的org.apache.shindig.gadgets.oauth.OAuthFetcherConfig类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。