本文整理汇总了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);
}
示例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;
}
示例3: OAuth1Applicator
import org.springframework.boot.autoconfigure.social.SocialProperties; //导入方法依赖的package包/类
public OAuth1Applicator(final SocialProperties properties) {
consumerKey = properties.getAppId();
consumerSecret = properties.getAppSecret();
}