public interface BellaDatiConnection extends Serializable
BellaDatiService
instance.
The same connection may be used to log in as multiple users, even in
parallel.
Connection instances may be serialized, saved, and restored for later use
with the same server. This will instantiate a new HTTP client.Modifier and Type | Method and Description |
---|---|
OAuthRequest |
oAuth(String consumerKey,
String consumerSecret)
Initiates OAuth authentication by requesting a request token from the
BellaDati server.
|
BellaDatiService |
xAuth(String consumerKey,
String consumerSecret,
String username,
String password)
Authenticates to the BellaDati server using xAuth.
|
OAuthRequest oAuth(String consumerKey, String consumerSecret) throws ConnectionException, AuthorizationException
consumerKey
- the consumer key configured in your BellaDati domainconsumerSecret
- the consumer secret configured in your BellaDati
domainConnectionException
- if connection to the server failsAuthorizationException
- if something went wrong during
authentication, check
AuthorizationException.getReason()
for detailsBellaDatiService xAuth(String consumerKey, String consumerSecret, String username, String password) throws ConnectionException, AuthorizationException
consumerKey
- the consumer key configured in your BellaDati domainconsumerSecret
- the consumer secret configured in your BellaDati
domainusername
- username of the user logging inpassword
- password of the user logging inConnectionException
- if connection to the server failsAuthorizationException
- if something went wrong during
authentication, check
AuthorizationException.getReason()
for detailsCopyright © 2013. All rights reserved.