org.jboss.resteasy.auth.oauth
Class OAuthToken

java.lang.Object
  extended by org.jboss.resteasy.auth.oauth.OAuthToken
Direct Known Subclasses:
OAuthRequestToken

public class OAuthToken
extends java.lang.Object

Represents either an OAuth Access or Request Token.

Author:
Stéphane Épardaud

Constructor Summary
OAuthToken(java.lang.String token, java.lang.String secret, java.lang.String[] scopes, java.lang.String[] permissions, long timeToLive, OAuthConsumer consumer)
           
 
Method Summary
 OAuthConsumer getConsumer()
          Returns this Token's Consumer.
 java.lang.String[] getPermissions()
          Returns this Token's permissions
 java.lang.String[] getScopes()
          Returns this Token's Scopes
 java.lang.String getSecret()
          Returns this Token's Secret
 long getTimestamp()
          Returns this Token's timestamp
 long getTimeToLive()
          Returns this Token's timeToLive
 java.lang.String getToken()
          Returns this Token's Token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthToken

public OAuthToken(java.lang.String token,
                  java.lang.String secret,
                  java.lang.String[] scopes,
                  java.lang.String[] permissions,
                  long timeToLive,
                  OAuthConsumer consumer)
Method Detail

getConsumer

public OAuthConsumer getConsumer()
Returns this Token's Consumer.


getToken

public java.lang.String getToken()
Returns this Token's Token


getSecret

public java.lang.String getSecret()
Returns this Token's Secret


getScopes

public java.lang.String[] getScopes()
Returns this Token's Scopes


getPermissions

public java.lang.String[] getPermissions()
Returns this Token's permissions


getTimestamp

public long getTimestamp()
Returns this Token's timestamp


getTimeToLive

public long getTimeToLive()
Returns this Token's timeToLive



Copyright © 2010. All Rights Reserved.