Codota Logo
SocialProperties.getAppId
Code IndexAdd Codota to your IDE (free)

How to use
getAppId
method
in
org.springframework.boot.autoconfigure.social.SocialProperties

Best Java code snippets using org.springframework.boot.autoconfigure.social.SocialProperties.getAppId (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: io.syndesis.server/server-credential

public OAuth1Applicator(final SocialProperties properties) {
  consumerKey = properties.getAppId();
  consumerSecret = properties.getAppSecret();
}
origin: io.syndesis/credential

public OAuth1Applicator(final SocialProperties properties) {
  consumerKey = properties.getAppId();
  consumerSecret = properties.getAppSecret();
}
origin: io.syndesis/credential

/* default */ 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;
}
origin: io.syndesis.server/server-credential

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;
}
origin: io.syndesis.server/server-credential

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);
}
origin: io.syndesis/credential

/* default */ 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);
}
origin: io.syndesis.server/server-credential

/**
 * Default implementation that applies {@link SocialProperties} and
 * {@link AccessGrant} to {@link Connection.Builder}.
 */
@Override
public final Connection applyTo(final Connection connection, final AccessGrant accessGrant) {
  final Connection.Builder mutableConnection = new Connection.Builder().createFrom(connection).lastUpdated(new Date());
  Applicator.applyProperty(mutableConnection, clientIdProperty, socialProperties.getAppId());
  Applicator.applyProperty(mutableConnection, clientSecretProperty, socialProperties.getAppSecret());
  Applicator.applyProperty(mutableConnection, accessTokenProperty, accessGrant.getAccessToken());
  Applicator.applyProperty(mutableConnection, refreshTokenProperty, accessGrant.getRefreshToken());
  final Long expireTime = accessGrant.getExpireTime();
  Applicator.applyProperty(mutableConnection, accessTokenExpiresAtProperty, expireTime == null ? null : expireTime.toString());
  additionalApplication(mutableConnection, accessGrant);
  return mutableConnection.build();
}
origin: io.syndesis/credential

/**
 * Default implementation that applies {@link SocialProperties} and
 * {@link AccessGrant} to {@link Connection.Builder}.
 */
@Override
public final Connection applyTo(final Connection connection, final AccessGrant accessGrant) {
  final Connection.Builder mutableConnection = new Connection.Builder().createFrom(connection)
    .lastUpdated(new Date());
  Applicator.applyProperty(mutableConnection, clientIdProperty, socialProperties.getAppId());
  Applicator.applyProperty(mutableConnection, clientSecretProperty, socialProperties.getAppSecret());
  Applicator.applyProperty(mutableConnection, accessTokenProperty, accessGrant.getAccessToken());
  Applicator.applyProperty(mutableConnection, refreshTokenProperty, accessGrant.getRefreshToken());
  additionalApplication(mutableConnection, accessGrant);
  return mutableConnection.build();
}
origin: io.syndesis.server/server-credential

  @Test
  public void shouldFetchProvidersFromDataManager() {
    final DataManager dataManager = mock(DataManager.class);
    final CredentialProviderRegistry registry = new CredentialProviderRegistry(dataManager);

    final Connector connector = new Connector.Builder().id("test-provider")
      .putProperty("clientId", new ConfigurationProperty.Builder().addTag(Credentials.CLIENT_ID_TAG).build())
      .putProperty("clientSecret",
        new ConfigurationProperty.Builder().addTag(Credentials.CLIENT_SECRET_TAG).build())
      .putConfiguredProperty("clientId", "a-client-id").putConfiguredProperty("clientSecret", "a-client-secret")
      .build();
    when(dataManager.fetch(Connector.class, "test-provider")).thenReturn(connector);

    assertThat(registry.providerWithId("test-provider")).isInstanceOfSatisfying(TestCredentialProvider.class, p -> {
      assertThat(p.getProperties().getAppId()).isEqualTo("a-client-id");
      assertThat(p.getProperties().getAppSecret()).isEqualTo("a-client-secret");
    });
  }
}
org.springframework.boot.autoconfigure.socialSocialPropertiesgetAppId

Popular methods of SocialProperties

  • getAppSecret
  • setAppId
  • setAppSecret

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now