org.springframework.security.oauth.consumer.token
Class OAuthConsumerToken

java.lang.Object
  extended by org.springframework.security.oauth.consumer.token.OAuthConsumerToken
All Implemented Interfaces:
java.io.Serializable

public class OAuthConsumerToken
extends java.lang.Object
implements java.io.Serializable

Interface for a consumer-side OAuth token.

Author:
Ryan Heaton
See Also:
Serialized Form

Constructor Summary
OAuthConsumerToken()
           
 
Method Summary
 java.lang.String getNonce()
          The nonce associated with this token.
 java.lang.String getResourceId()
          The id of the resource to which this token applies.
 java.lang.String getSecret()
          The token secret.
 java.lang.String getValue()
          The value of the token.
 boolean isAccessToken()
          Whether this is an OAuth access token.
 void setAccessToken(boolean accessToken)
          Whether this is an OAuth access token.
 void setNonce(java.lang.String nonce)
          The nonce associated with this token.
 void setResourceId(java.lang.String resourceId)
          The id of the resource to which this token applies.
 void setSecret(java.lang.String secret)
          The token secret.
 void setValue(java.lang.String value)
          The value of the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthConsumerToken

public OAuthConsumerToken()
Method Detail

getResourceId

public java.lang.String getResourceId()
The id of the resource to which this token applies.

Returns:
The id of the resource to which this token applies.

setResourceId

public void setResourceId(java.lang.String resourceId)
The id of the resource to which this token applies.

Parameters:
resourceId - The id of the resource to which this token applies.

getValue

public java.lang.String getValue()
The value of the token.

Returns:
The value of the token.

setValue

public void setValue(java.lang.String value)
The value of the token.

Parameters:
value - The value of the token.

getSecret

public java.lang.String getSecret()
The token secret.

Returns:
The token secret.

setSecret

public void setSecret(java.lang.String secret)
The token secret.

Parameters:
secret - The token secret.

getNonce

public java.lang.String getNonce()
The nonce associated with this token.

Returns:
The nonce associated with this token.

setNonce

public void setNonce(java.lang.String nonce)
The nonce associated with this token.

Parameters:
nonce - The nonce associated with this token.

isAccessToken

public boolean isAccessToken()
Whether this is an OAuth access token.

Returns:
Whether this is an OAuth access token.

setAccessToken

public void setAccessToken(boolean accessToken)
Whether this is an OAuth access token.

Parameters:
accessToken - Whether this is an OAuth access token.


Copyright © 2008. All Rights Reserved.