use of io.syndesis.server.credential.OAuth1Applicator in project syndesis by syndesisio.
the class TwitterCredentialProviderFactory method createCredentialProvider.
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);
}
Aggregations