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


Java SocialProperties.getAppSecret方法代码示例

本文整理汇总了Java中org.springframework.boot.autoconfigure.social.SocialProperties.getAppSecret方法的典型用法代码示例。如果您正苦于以下问题:Java SocialProperties.getAppSecret方法的具体用法?Java SocialProperties.getAppSecret怎么用?Java SocialProperties.getAppSecret使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.springframework.boot.autoconfigure.social.SocialProperties的用法示例。


在下文中一共展示了SocialProperties.getAppSecret方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createCredentialProvider

import org.springframework.boot.autoconfigure.social.SocialProperties; //导入方法依赖的package包/类
static CredentialProvider createCredentialProvider(final SocialProperties properties) {
    final TwitterConnectionFactory twitter = new TwitterConnectionFactory(properties.getAppId(),
        properties.getAppSecret());
    final OAuth1Applicator applicator = new OAuth1Applicator(properties);
    applicator.setConsumerKeyProperty("consumerKey");
    applicator.setConsumerSecretProperty("consumerSecret");
    applicator.setAccessTokenSecretProperty("accessTokenSecret");
    applicator.setAccessTokenValueProperty("accessToken");

    return new OAuth1CredentialProvider<>("twitter", twitter, applicator);
}
 
开发者ID:syndesisio,项目名称:syndesis,代码行数:12,代码来源:TwitterCredentialProviderFactory.java

示例2: createConnectionFactory

import org.springframework.boot.autoconfigure.social.SocialProperties; //导入方法依赖的package包/类
static SalesforceConnectionFactory
    createConnectionFactory(final SocialProperties salesforceProperties) {
    final SalesforceConnectionFactory salesforce = new SalesforceConnectionFactory(salesforceProperties.getAppId(),
        salesforceProperties.getAppSecret());

    final OAuth2Template oAuthOperations = (OAuth2Template) salesforce.getOAuthOperations();

    // Salesforce requires OAuth client id and secret on the OAuth request
    oAuthOperations.setUseParametersForClientAuthentication(true);

    return salesforce;
}
 
开发者ID:syndesisio,项目名称:syndesis,代码行数:13,代码来源:SalesforceCredentialProviderFactory.java

示例3: OAuth1Applicator

import org.springframework.boot.autoconfigure.social.SocialProperties; //导入方法依赖的package包/类
public OAuth1Applicator(final SocialProperties properties) {
    consumerKey = properties.getAppId();
    consumerSecret = properties.getAppSecret();
}
 
开发者ID:syndesisio,项目名称:syndesis,代码行数:5,代码来源:OAuth1Applicator.java


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