twitter4j.http
Class RequestToken

java.lang.Object
  extended by twitter4j.http.OAuthToken
      extended by twitter4j.http.RequestToken
All Implemented Interfaces:
java.io.Serializable

public class RequestToken
extends OAuthToken
implements java.io.Serializable

Author:
Yusuke Yamamoto - yusuke at mac.com representing unauthorized Request Token which is passed to the service provider when acquiring the authorized Access Token
See Also:
Serialized Form

Field Summary
private  Configuration conf
           
private  OAuthSupport oauth
           
private static long serialVersionUID
           
 
Fields inherited from class twitter4j.http.OAuthToken
responseStr
 
Constructor Summary
RequestToken(HttpResponse res, OAuthSupport oauth)
           
RequestToken(java.lang.String token, java.lang.String tokenSecret)
           
RequestToken(java.lang.String token, java.lang.String tokenSecret, OAuthSupport oauth)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 AccessToken getAccessToken()
           
 AccessToken getAccessToken(java.lang.String oauth_verifier)
           
 java.lang.String getAuthenticationURL()
          since Twitter4J 2.0.10
 java.lang.String getAuthorizationURL()
           
 int hashCode()
           
 
Methods inherited from class twitter4j.http.OAuthToken
getParameter, getSecretKeySpec, getToken, getTokenSecret, setSecretKeySpec, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

conf

private final Configuration conf

oauth

private OAuthSupport oauth

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

RequestToken

RequestToken(HttpResponse res,
             OAuthSupport oauth)
       throws TwitterException
Throws:
TwitterException

RequestToken

public RequestToken(java.lang.String token,
                    java.lang.String tokenSecret)

RequestToken

RequestToken(java.lang.String token,
             java.lang.String tokenSecret,
             OAuthSupport oauth)
Method Detail

getAccessToken

public AccessToken getAccessToken()
                           throws TwitterException
Throws:
TwitterException

getAccessToken

public AccessToken getAccessToken(java.lang.String oauth_verifier)
                           throws TwitterException
Throws:
TwitterException

getAuthorizationURL

public java.lang.String getAuthorizationURL()

getAuthenticationURL

public java.lang.String getAuthenticationURL()
since Twitter4J 2.0.10


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class OAuthToken

hashCode

public int hashCode()
Overrides:
hashCode in class OAuthToken