public class OAuth extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OAuth.Error |
static class |
OAuth.Response
Response to an OAuth 1.0 request.
|
static class |
OAuth.ServiceInfo
Information relative to an OAuth 1.0 provider.
|
static class |
OAuth.TokenPair
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isVerifierResponse() |
String |
redirectUrl(OAuth.TokenPair tokenPair)
Deprecated.
|
String |
redirectUrl(String token) |
OAuth.TokenPair |
requestAccessToken(OAuth.TokenPair tokenPair)
Deprecated.
use retrieveAccessToken() instead
|
OAuth.TokenPair |
requestUnauthorizedToken()
Deprecated.
use retrieveRequestToken() instead
|
OAuth.Response |
retrieveAccessToken(OAuth.Response requestTokenResponse)
Exchange a request token for an access token.
|
OAuth.Response |
retrieveAccessToken(String token,
String secret)
Exchange a request token for an access token.
|
OAuth.Response |
retrieveRequestToken()
Request the request token and secret.
|
OAuth.Response |
retrieveRequestToken(String callbackURL)
Request the request token and secret.
|
static OAuth |
service(OAuth.ServiceInfo info)
Create an OAuth object for the service described in info
|
public static OAuth service(OAuth.ServiceInfo info)
info
- must contain all information related to the servicepublic static boolean isVerifierResponse()
public OAuth.Response retrieveRequestToken()
public OAuth.Response retrieveRequestToken(String callbackURL)
callbackURL
- the URL where the provider should redirect topublic OAuth.Response retrieveAccessToken(OAuth.Response requestTokenResponse)
requestTokenResponse
- a successful response obtained from retrieveRequestTokenpublic OAuth.Response retrieveAccessToken(String token, String secret)
token
- the token obtained from a previous callsecret
- your application secret@Deprecated public OAuth.TokenPair requestUnauthorizedToken()
@Deprecated public OAuth.TokenPair requestAccessToken(OAuth.TokenPair tokenPair)
@Deprecated public String redirectUrl(OAuth.TokenPair tokenPair)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly