com.stormpath.sdk.impl.provider.DefaultTwitterProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stormpath-sdk-impl Show documentation
Show all versions of stormpath-sdk-impl Show documentation
The Stormpath Java SDK core implemenation .jar is used at runtime to support API invocations. This
implementation jar should be a runtime dependency only and should NOT be depended on at compile time by
your code. The implementations within this jar can change at any time without warning - use it with runtime
scope only.
package com.stormpath.sdk.impl.provider;
import com.stormpath.sdk.impl.ds.InternalDataStore;
import com.stormpath.sdk.impl.resource.Property;
import com.stormpath.sdk.provider.TwitterProvider;
import java.util.Map;
/**
* @since 1.3.0
*/
public class DefaultTwitterProvider extends AbstractOAuthProvider implements TwitterProvider {
static final Map PROPERTY_DESCRIPTORS = createPropertyDescriptorMap(PROVIDER_ID, CREATED_AT, MODIFIED_AT, CLIENT_ID, CLIENT_SECRET, SCOPE, USER_INFO_MAPPING_RULES);
public DefaultTwitterProvider(InternalDataStore dataStore) {
super(dataStore);
}
public DefaultTwitterProvider(InternalDataStore dataStore, Map properties) {
super(dataStore, properties);
}
@Override
public Map getPropertyDescriptors() {
return PROPERTY_DESCRIPTORS;
}
@Override
protected String getConcreteProviderId() {
return IdentityProviderType.TWITTER.getNameKey();
}
@Override
public String getProviderType() {
return IdentityProviderType.TWITTER.getNameKey();
}
}