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)
OAuthAppSettingsBuilder
Param
. This method can be used when params for OAuthAppSettings
are defined through an annotation.params
in interface OAuthAppSettingsBuilder
params
- parameters collection to configure the builderpublic OAuthAppSettingsBuilder qualifier(Annotation qualifier)
OAuthAppSettingsBuilder
qualifier
in interface OAuthAppSettingsBuilder
qualifier
- the name of the related Social Mediapublic SimpleOAuthAppSettingsBuilder name(String name)
OAuthAppSettingsBuilder
name
in interface OAuthAppSettingsBuilder
name
- the name of the related Social Mediapublic SimpleOAuthAppSettingsBuilder apiKey(String apiKey)
OAuthAppSettingsBuilder
apiKey
in interface OAuthAppSettingsBuilder
apiKey
- the consumer (public) OAuth keypublic SimpleOAuthAppSettingsBuilder apiSecret(String apiSecret)
OAuthAppSettingsBuilder
apiSecret
in interface OAuthAppSettingsBuilder
apiSecret
- the secret (private) OAuth keypublic SimpleOAuthAppSettingsBuilder callback(String callback)
callback
in interface OAuthAppSettingsBuilder
callback
- a callback url or 'oob' if the application is not on the webpublic SimpleOAuthAppSettingsBuilder scope(String scope)
OAuthAppSettingsBuilder
scope
in interface OAuthAppSettingsBuilder
scope
- list (string separated by commas) of authorized action defined by Social Media for the applicationpublic OAuthAppSettings build()
OAuthAppSettingsBuilder
OAuthAppSettings
build
in interface OAuthAppSettingsBuilder
public OAuthAppSettingsBuilder readFromSettings(OAuthAppSettings settings)
OAuthAppSettingsBuilder
OAuthAppSettings
readFromSettings
in interface OAuthAppSettingsBuilder
settings
- settings to read fromCopyright © 2012-2013. All Rights Reserved.