Interface ServiceBuilderOAuth10a
- All Superinterfaces:
ServiceBuilderCommon
- All Known Implementing Classes:
ServiceBuilder
public interface ServiceBuilderOAuth10a extends ServiceBuilderCommon
-
Method Summary
Modifier and Type Method Description ServiceBuilderOAuth10a
apiKey(java.lang.String apiKey)
Configures the api keyServiceBuilderOAuth10a
apiSecret(java.lang.String apiSecret)
Configures the api secretServiceBuilderOAuth10a
apiSecretIsEmptyStringUnsafe()
Configures the api secret as "" (empty string).OAuth10aService
build(DefaultApi10a api)
ServiceBuilderOAuth10a
callback(java.lang.String callback)
Adds an OAuth callback urlServiceBuilderOAuth10a
debug()
ServiceBuilderOAuth10a
debugStream(java.io.OutputStream debugStream)
ServiceBuilderOAuth10a
httpClient(HttpClient httpClient)
takes precedence over httpClientConfigServiceBuilderOAuth10a
httpClientConfig(HttpClientConfig httpClientConfig)
ServiceBuilderOAuth10a
userAgent(java.lang.String userAgent)
ServiceBuilderOAuth10a
withScope(java.lang.String scope)
Configures the OAuth 1.0a scope.
-
Method Details
-
callback
Description copied from interface:ServiceBuilderCommon
Adds an OAuth callback url- Specified by:
callback
in interfaceServiceBuilderCommon
- Parameters:
callback
- callback url. Must be a valid url or 'oob' (OAuthConstants.OOB
for out of band OAuth- Returns:
- the
ServiceBuilder
instance for method chaining
-
apiKey
Description copied from interface:ServiceBuilderCommon
Configures the api key- Specified by:
apiKey
in interfaceServiceBuilderCommon
- Parameters:
apiKey
- The api key for your application- Returns:
- the
ServiceBuilder
instance for method chaining
-
apiSecret
Description copied from interface:ServiceBuilderCommon
Configures the api secret- Specified by:
apiSecret
in interfaceServiceBuilderCommon
- Parameters:
apiSecret
- The api secret for your application- Returns:
- the
ServiceBuilder
instance for method chaining
-
apiSecretIsEmptyStringUnsafe
ServiceBuilderOAuth10a apiSecretIsEmptyStringUnsafe()Description copied from interface:ServiceBuilderCommon
Configures the api secret as "" (empty string). Used usually for a test environments or another strange cases. Not all providers support empty string as api key and will throw an Exception in such cases.- Specified by:
apiSecretIsEmptyStringUnsafe
in interfaceServiceBuilderCommon
- Returns:
- the
ServiceBuilder
instance for method chaining
-
httpClientConfig
- Specified by:
httpClientConfig
in interfaceServiceBuilderCommon
-
httpClient
Description copied from interface:ServiceBuilderCommon
takes precedence over httpClientConfig- Specified by:
httpClient
in interfaceServiceBuilderCommon
- Parameters:
httpClient
- externally created HTTP client- Returns:
- the
ServiceBuilder
instance for method chaining
-
userAgent
- Specified by:
userAgent
in interfaceServiceBuilderCommon
-
debugStream
- Specified by:
debugStream
in interfaceServiceBuilderCommon
-
debug
ServiceBuilderOAuth10a debug()- Specified by:
debug
in interfaceServiceBuilderCommon
-
withScope
Configures the OAuth 1.0a scope. This is only necessary in some APIs- Parameters:
scope
- The OAuth scope- Returns:
- the
ServiceBuilder
instance for method chaining
-
build
-