public interface OAuthAppSettingsBuilder
OAuthAppSettings can be initialized directly from
fields name or from an Array of Param in case of Annotation configuration with OAuthApplication.
For this last purpose, the interface OAuthAppSettingsBuilder contains constants
for fields name should the configuration being read from a text file.| Modifier and Type | Field and Description |
|---|---|
static String |
API_KEY
key label for the consumer key of the OAuth application
|
static String |
API_SECRET
key label for the consumer secret of the OAuth application
|
static String |
CALLBACK
key label for the call back url to send to of the tier service
|
static String |
NAME
key label for the name of the OAuth service
|
static String |
PREFIX
key prefix label
|
static String |
SCOPE
key label for the scope of the OAuth application
|
| Modifier and Type | Method and Description |
|---|---|
OAuthAppSettingsBuilder |
apiKey(String apiKey)
Set the Social Media application consumer key
|
OAuthAppSettingsBuilder |
apiSecret(String apiSecret)
Set the Social Media application secret key
|
OAuthAppSettings |
build()
Builds the
OAuthAppSettings |
OAuthAppSettingsBuilder |
callback(String callback)
Set the Callback for the application
|
OAuthAppSettingsBuilder |
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 |
OAuthAppSettingsBuilder |
scope(String scope)
Set the OAuth 2.0 scope for the application
|
static final String NAME
static final String API_KEY
static final String API_SECRET
static final String CALLBACK
static final String SCOPE
static final String PREFIX
OAuthAppSettingsBuilder qualifier(Annotation qualifier)
qualifier - the name of the related Social MediaOAuthAppSettingsBuilder name(String name)
name - the name of the related Social MediaOAuthAppSettingsBuilder apiKey(String apiKey)
apiKey - the consumer (public) OAuth keyOAuthAppSettingsBuilder apiSecret(String apiSecret)
apiSecret - the secret (private) OAuth keyOAuthAppSettingsBuilder callback(String callback)
callback - a callback url or 'oob' if the application is not on the webOAuthAppSettingsBuilder scope(String scope)
scope - list (string separated by commas) of authorized action defined by Social Media for the applicationOAuthAppSettingsBuilder params(Param[] params)
Param. This method can be used when params for OAuthAppSettings
are defined through an annotation.params - parameters collection to configure the builderOAuthAppSettings build()
OAuthAppSettingsOAuthAppSettingsBuilder readFromSettings(OAuthAppSettings settings)
OAuthAppSettingssettings - settings to read fromCopyright © 2012-2013. All Rights Reserved.