public class ServiceBuilder
extends java.lang.Object
OAuthService
Constructor and Description |
---|
ServiceBuilder()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
ServiceBuilder |
apiKey(java.lang.String apiKey)
Configures the api key
|
ServiceBuilder |
apiSecret(java.lang.String apiSecret)
Configures the api secret
|
OAuthService |
build()
Returns the fully configured
OAuthService |
ServiceBuilder |
callback(java.lang.String callback)
Adds an OAuth callback url
|
ServiceBuilder |
debugLogger(OAuthLogger logger) |
ServiceBuilder |
provider(OAuthApi api)
Configures the
OAuthApi
Overloaded version. |
ServiceBuilder |
scope(java.lang.String scope)
Configures the OAuth scope.
|
ServiceBuilder |
signatureType(SignatureType type)
Configures the signature type, choose between header, querystring, etc.
|
public ServiceBuilder provider(OAuthApi api)
OAuthApi
Overloaded version. Let's you use an instance instead of a class.api
- instance of OAuthApi
sServiceBuilder
instance for method chainingpublic ServiceBuilder callback(java.lang.String callback)
callback
- callback url. Must be a valid url or 'oob' for out of band OAuthServiceBuilder
instance for method chainingpublic ServiceBuilder apiKey(java.lang.String apiKey)
apiKey
- The api key for your applicationServiceBuilder
instance for method chainingpublic ServiceBuilder apiSecret(java.lang.String apiSecret)
apiSecret
- The api secret for your applicationServiceBuilder
instance for method chainingpublic ServiceBuilder scope(java.lang.String scope)
scope
- The OAuth scopeServiceBuilder
instance for method chainingpublic ServiceBuilder signatureType(SignatureType type)
type
- signature typeServiceBuilder
instance for method chainingpublic ServiceBuilder debugLogger(OAuthLogger logger)
public OAuthService build()
OAuthService
OAuthService