| 
 | ||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectplay.libs.OAuth
public class OAuth
Library to access ressources protected by OAuth 1.0a. For OAuth 2.0, see play.libs.OAuth2.
| 嵌套类摘要 | |
|---|---|
| static class | OAuth.Error | 
| static class | OAuth.ResponseResponse to an OAuth 1.0 request. | 
| static class | OAuth.ServiceInfoInformation relative to an OAuth 1.0 provider. | 
| static class | OAuth.TokenPair已过时。 | 
| 方法摘要 | |
|---|---|
| static boolean | isVerifierResponse() | 
|  java.lang.String | redirectUrl(OAuth.TokenPair tokenPair)已过时。 | 
|  java.lang.String | redirectUrl(java.lang.String token) | 
|  OAuth.TokenPair | requestAccessToken(OAuth.TokenPair tokenPair)已过时。 use retrieveAccessToken() instead | 
|  OAuth.TokenPair | requestUnauthorizedToken()已过时。 use retrieveRequestToken() instead | 
|  OAuth.Response | retrieveAccessToken(OAuth.Response requestTokenResponse)Exchange a request token for an access token. | 
|  OAuth.Response | retrieveAccessToken(java.lang.String token,
                    java.lang.String secret)Exchange a request token for an access token. | 
|  OAuth.Response | retrieveRequestToken()Request the request token and secret. | 
|  OAuth.Response | retrieveRequestToken(java.lang.String callbackURL)Request the request token and secret. | 
| static OAuth | service(OAuth.ServiceInfo info)Create an OAuth object for the service described in info | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 方法详细信息 | 
|---|
public static OAuth service(OAuth.ServiceInfo info)
info - must contain all informations related to the service
public static boolean isVerifierResponse()
public OAuth.Response retrieveRequestToken()
public OAuth.Response retrieveRequestToken(java.lang.String callbackURL)
callbackURL - the URL where the provider should redirect to
public OAuth.Response retrieveAccessToken(OAuth.Response requestTokenResponse)
requestTokenResponse - a successful response obtained from retrieveRequestToken
public OAuth.Response retrieveAccessToken(java.lang.String token,
                                          java.lang.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)
public java.lang.String redirectUrl(java.lang.String token)
@Deprecated public java.lang.String redirectUrl(OAuth.TokenPair tokenPair)
| 
 | ||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||