public class OAuth
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
OAuth.ConsumerKey
A consumer key / consumer secret pair that the OAuth provider gave you, to identify your application.
|
static class |
OAuth.OAuthCalculator
A signature calculator for the Play WS API.
|
static class |
OAuth.RequestToken
A request token / token secret pair, to be used for a specific user.
|
static class |
OAuth.ServiceInfo
The information identifying a oauth provider: URLs and the consumer key / consumer secret pair.
|
static class |
OAuth.WSRequestAdapter |
Constructor and Description |
---|
OAuth(OAuth.ServiceInfo info) |
OAuth(OAuth.ServiceInfo info,
boolean use10a) |
Modifier and Type | Method and Description |
---|---|
OAuth.ServiceInfo |
getInfo() |
oauth.signpost.OAuthProvider |
getProvider() |
java.lang.String |
redirectUrl(java.lang.String token)
The URL where the user needs to be redirected to grant authorization to your application.
|
OAuth.RequestToken |
retrieveAccessToken(OAuth.RequestToken token,
java.lang.String verifier)
Exchange a request token for an access token.
|
OAuth.RequestToken |
retrieveRequestToken(java.lang.String callbackURL)
Request the request token and secret.
|
public OAuth(OAuth.ServiceInfo info)
public OAuth(OAuth.ServiceInfo info, boolean use10a)
public OAuth.ServiceInfo getInfo()
public oauth.signpost.OAuthProvider getProvider()
public OAuth.RequestToken retrieveRequestToken(java.lang.String callbackURL)
callbackURL
- the URL where the provider should redirect to (usually a URL on the current app)public OAuth.RequestToken retrieveAccessToken(OAuth.RequestToken token, java.lang.String verifier)
the
- token/secret pair obtained from a previous callverifier
- a string you got through your user, with redirectionpublic java.lang.String redirectUrl(java.lang.String token)
token
- request token