play.libs
Class OAuth

java.lang.Object
  extended by play.libs.OAuth

public class OAuth
extends java.lang.Object

Library to access ressources protected by OAuth 1.0a. For OAuth 2.0, see play.libs.OAuth2.


Nested Class Summary
static class OAuth.ServiceInfo
          Information relative to an OAuth 1.0 provider.
static class OAuth.TokenPair
           
 
Method Summary
static boolean isVerifierResponse()
           
 java.lang.String redirectUrl(OAuth.TokenPair tokenPair)
           
 OAuth.TokenPair requestAccessToken(OAuth.TokenPair tokenPair)
           
 OAuth.TokenPair requestUnauthorizedToken()
          Request the unauthorized token and secret.
static OAuth service(OAuth.ServiceInfo info)
          Create an OAuth object for the service described in info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

service

public static OAuth service(OAuth.ServiceInfo info)
Create an OAuth object for the service described in info

Parameters:
info - must contain all informations related to the service
Returns:
the OAuth object

isVerifierResponse

public static boolean isVerifierResponse()

requestUnauthorizedToken

public OAuth.TokenPair requestUnauthorizedToken()
Request the unauthorized token and secret. They can then be read with getTokens()

Returns:
the url to redirect the user to get the verifier and continue the process

requestAccessToken

public OAuth.TokenPair requestAccessToken(OAuth.TokenPair tokenPair)

redirectUrl

public java.lang.String redirectUrl(OAuth.TokenPair tokenPair)


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly