Interface ServiceBuilderOAuth10a
- All Superinterfaces:
ServiceBuilderCommon
- All Known Implementing Classes:
ServiceBuilder
public interface ServiceBuilderOAuth10a extends ServiceBuilderCommon
-
Method Summary
Modifier and Type Method Description ServiceBuilderOAuth10aapiKey(java.lang.String apiKey)Configures the api keyServiceBuilderOAuth10aapiSecret(java.lang.String apiSecret)Configures the api secretServiceBuilderOAuth10aapiSecretIsEmptyStringUnsafe()Configures the api secret as "" (empty string).OAuth10aServicebuild(DefaultApi10a api)ServiceBuilderOAuth10acallback(java.lang.String callback)Adds an OAuth callback urlServiceBuilderOAuth10adebug()ServiceBuilderOAuth10adebugStream(java.io.OutputStream debugStream)ServiceBuilderOAuth10ahttpClient(HttpClient httpClient)takes precedence over httpClientConfigServiceBuilderOAuth10ahttpClientConfig(HttpClientConfig httpClientConfig)ServiceBuilderOAuth10auserAgent(java.lang.String userAgent)ServiceBuilderOAuth10awithScope(java.lang.String scope)Configures the OAuth 1.0a scope.
-
Method Details
-
callback
Description copied from interface:ServiceBuilderCommonAdds an OAuth callback url- Specified by:
callbackin interfaceServiceBuilderCommon- Parameters:
callback- callback url. Must be a valid url or 'oob' (OAuthConstants.OOBfor out of band OAuth- Returns:
- the
ServiceBuilderinstance for method chaining
-
apiKey
Description copied from interface:ServiceBuilderCommonConfigures the api key- Specified by:
apiKeyin interfaceServiceBuilderCommon- Parameters:
apiKey- The api key for your application- Returns:
- the
ServiceBuilderinstance for method chaining
-
apiSecret
Description copied from interface:ServiceBuilderCommonConfigures the api secret- Specified by:
apiSecretin interfaceServiceBuilderCommon- Parameters:
apiSecret- The api secret for your application- Returns:
- the
ServiceBuilderinstance for method chaining
-
apiSecretIsEmptyStringUnsafe
ServiceBuilderOAuth10a apiSecretIsEmptyStringUnsafe()Description copied from interface:ServiceBuilderCommonConfigures 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:
apiSecretIsEmptyStringUnsafein interfaceServiceBuilderCommon- Returns:
- the
ServiceBuilderinstance for method chaining
-
httpClientConfig
- Specified by:
httpClientConfigin interfaceServiceBuilderCommon
-
httpClient
Description copied from interface:ServiceBuilderCommontakes precedence over httpClientConfig- Specified by:
httpClientin interfaceServiceBuilderCommon- Parameters:
httpClient- externally created HTTP client- Returns:
- the
ServiceBuilderinstance for method chaining
-
userAgent
- Specified by:
userAgentin interfaceServiceBuilderCommon
-
debugStream
- Specified by:
debugStreamin interfaceServiceBuilderCommon
-
debug
ServiceBuilderOAuth10a debug()- Specified by:
debugin interfaceServiceBuilderCommon
-
withScope
Configures the OAuth 1.0a scope. This is only necessary in some APIs- Parameters:
scope- The OAuth scope- Returns:
- the
ServiceBuilderinstance for method chaining
-
build
-