org.springframework.security.oauth.consumer
Class OAuthConsumerToken

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

public class OAuthConsumerToken
extends Object
implements Serializable

Interface for a consumer-side OAuth token.

Author:
Ryan Heaton
See Also:
Serialized Form

Constructor Summary
OAuthConsumerToken()
           
 
Method Summary
 Map<String,String> getAdditionalParameters()
          Any additional parameters for the consumer token.
 String getResourceId()
          The id of the resource to which this token applies.
 String getSecret()
          The token secret.
 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 setAdditionalParameters(Map<String,String> additionalParameters)
          Any additional parameters for the consumer token.
 void setResourceId(String resourceId)
          The id of the resource to which this token applies.
 void setSecret(String secret)
          The token secret.
 void setValue(String value)
          The value of the token.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OAuthConsumerToken

public OAuthConsumerToken()
Method Detail

getResourceId

public 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(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 String getValue()
The value of the token.

Returns:
The value of the token.

setValue

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

Parameters:
value - The value of the token.

getSecret

public String getSecret()
The token secret.

Returns:
The token secret.

setSecret

public void setSecret(String secret)
The token secret.

Parameters:
secret - The token secret.

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.

getAdditionalParameters

public Map<String,String> getAdditionalParameters()
Any additional parameters for the consumer token.

Returns:
Any additional parameters for the consumer token.

setAdditionalParameters

public void setAdditionalParameters(Map<String,String> additionalParameters)
Any additional parameters for the consumer token.

Parameters:
additionalParameters - Any additional parameters for the consumer token.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.