Apache CXF API

org.apache.cxf.rs.security.oauth.data
Class RequestToken

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth.data.Token
      extended by org.apache.cxf.rs.security.oauth.data.RequestToken

public class RequestToken
extends Token

Request Token representation


Constructor Summary
RequestToken(Client client, String tokenString, String tokenSecret)
           
RequestToken(Client client, String tokenString, String tokenSecret, long lifetime, long issuedAt)
           
 
Method Summary
 String getCallback()
          Gets the callback URI
 String getState()
          Gets the state
 String getVerifier()
          Gets the token verifier
 void setCallback(String callback)
          Sets the callback URI
 void setState(String state)
          Sets the state - it will be reported back to the consumer after the authorization decision on this token has been made.
 void setVerifier(String verifier)
          Sets the token verifier
 
Methods inherited from class org.apache.cxf.rs.security.oauth.data.Token
getClient, getIssuedAt, getLifetime, getScopes, getSubject, getTokenKey, getTokenSecret, isPreAuthorized, setPreAuthorized, setScopes, setSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestToken

public RequestToken(Client client,
                    String tokenString,
                    String tokenSecret)

RequestToken

public RequestToken(Client client,
                    String tokenString,
                    String tokenSecret,
                    long lifetime,
                    long issuedAt)
Method Detail

setVerifier

public void setVerifier(String verifier)
Sets the token verifier

Parameters:
oauthVerifier -

getVerifier

public String getVerifier()
Gets the token verifier

Returns:
the verifier

setCallback

public void setCallback(String callback)
Sets the callback URI

Parameters:
callback - the callback

getCallback

public String getCallback()
Gets the callback URI

Returns:
the callback

setState

public void setState(String state)
Sets the state - it will be reported back to the consumer after the authorization decision on this token has been made.

Parameters:
state -

getState

public String getState()
Gets the state

Returns:
the state

Apache CXF API

Apache CXF