com.dyuproject.oauth.sp
Class SimpleServiceToken

java.lang.Object
  extended by com.dyuproject.oauth.sp.SimpleServiceToken
All Implemented Interfaces:
ServiceToken, Serializable

public final class SimpleServiceToken
extends Object
implements ServiceToken

Simple service token to hold the keys

Author:
David Yu
See Also:
Serialized Form
Date created:
Jun 8, 2009

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.dyuproject.oauth.sp.ServiceToken
ServiceToken.Store
 
Constructor Summary
SimpleServiceToken(String consumerSecret, String key, String secret)
           
SimpleServiceToken(String consumerSecret, String key, String secret, String id)
           
 
Method Summary
 String getConsumerSecret()
          Gets the consumerSecret.
 String getId()
          Gets the application assigned id when upon authorization of a user.
 String getKey()
          Gets the request or access token.
 String getSecret()
          Gets the token secret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServiceToken

public SimpleServiceToken(String consumerSecret,
                          String key,
                          String secret)

SimpleServiceToken

public SimpleServiceToken(String consumerSecret,
                          String key,
                          String secret,
                          String id)
Method Detail

getConsumerSecret

public String getConsumerSecret()
Description copied from interface: ServiceToken
Gets the consumerSecret.

Specified by:
getConsumerSecret in interface ServiceToken

getKey

public String getKey()
Description copied from interface: ServiceToken
Gets the request or access token.

Specified by:
getKey in interface ServiceToken

getSecret

public String getSecret()
Description copied from interface: ServiceToken
Gets the token secret.

Specified by:
getSecret in interface ServiceToken

getId

public String getId()
Description copied from interface: ServiceToken
Gets the application assigned id when upon authorization of a user. This basically could be the username tied to the user during the user's authentication on the service provider.

Specified by:
getId in interface ServiceToken


Copyright © 2008-2013. All Rights Reserved.