public class SimpleOAuthAppSettingsBuilder extends Object implements OAuthAppSettingsBuilder
API_KEY, API_SECRET, CALLBACK, NAME, PREFIX, SCOPE| Constructor and Description |
|---|
SimpleOAuthAppSettingsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SimpleOAuthAppSettingsBuilder |
apiKey(String apiKey)
Set the Social Media application consumer key
|
SimpleOAuthAppSettingsBuilder |
apiSecret(String apiSecret)
Set the Social Media application secret key
|
OAuthAppSettings |
build()
Builds the
OAuthAppSettings |
SimpleOAuthAppSettingsBuilder |
callback(String callback)
Set the Callback for the application
|
SimpleOAuthAppSettingsBuilder |
name(String name)
Set the name of the Social Media for which the settings are intended
|
OAuthAppSettingsBuilder |
params(Param[] params)
Load builder params with an array of
Param. |
OAuthAppSettingsBuilder |
qualifier(Annotation qualifier)
Set the qualifier of the Social Media for which the settings are intended.
|
OAuthAppSettingsBuilder |
readFromSettings(OAuthAppSettings settings)
Set builder params from an existing
OAuthAppSettings |
SimpleOAuthAppSettingsBuilder |
scope(String scope)
Set the OAuth 2.0 scope for the application
|
public OAuthAppSettingsBuilder params(Param[] params)
OAuthAppSettingsBuilderParam. This method can be used when params for OAuthAppSettings
are defined through an annotation.params in interface OAuthAppSettingsBuilderparams - parameters collection to configure the builderpublic OAuthAppSettingsBuilder qualifier(Annotation qualifier)
OAuthAppSettingsBuilderqualifier in interface OAuthAppSettingsBuilderqualifier - the name of the related Social Mediapublic SimpleOAuthAppSettingsBuilder name(String name)
OAuthAppSettingsBuildername in interface OAuthAppSettingsBuildername - the name of the related Social Mediapublic SimpleOAuthAppSettingsBuilder apiKey(String apiKey)
OAuthAppSettingsBuilderapiKey in interface OAuthAppSettingsBuilderapiKey - the consumer (public) OAuth keypublic SimpleOAuthAppSettingsBuilder apiSecret(String apiSecret)
OAuthAppSettingsBuilderapiSecret in interface OAuthAppSettingsBuilderapiSecret - the secret (private) OAuth keypublic SimpleOAuthAppSettingsBuilder callback(String callback)
callback in interface OAuthAppSettingsBuildercallback - a callback url or 'oob' if the application is not on the webpublic SimpleOAuthAppSettingsBuilder scope(String scope)
OAuthAppSettingsBuilderscope in interface OAuthAppSettingsBuilderscope - list (string separated by commas) of authorized action defined by Social Media for the applicationpublic OAuthAppSettings build()
OAuthAppSettingsBuilderOAuthAppSettingsbuild in interface OAuthAppSettingsBuilderpublic OAuthAppSettingsBuilder readFromSettings(OAuthAppSettings settings)
OAuthAppSettingsBuilderOAuthAppSettingsreadFromSettings in interface OAuthAppSettingsBuildersettings - settings to read fromCopyright © 2012-2013. All Rights Reserved.