org.tynamo.security.federatedaccounts.oauth
Class OauthAccessToken

java.lang.Object
  extended by org.tynamo.security.federatedaccounts.oauth.OauthAccessToken
All Implemented Interfaces:
Serializable, org.apache.shiro.authc.AuthenticationToken
Direct Known Subclasses:
FacebookAccessToken

public class OauthAccessToken
extends Object
implements org.apache.shiro.authc.AuthenticationToken

See Also:
Serialized Form

Constructor Summary
OauthAccessToken(String accessToken, Date expiration)
           
 
Method Summary
 Object getCredentials()
           
 Date getExpiration()
           
 Object getPrincipal()
           
 String getToken()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OauthAccessToken

public OauthAccessToken(String accessToken,
                        Date expiration)
Method Detail

getToken

public String getToken()

getExpiration

public Date getExpiration()

toString

public String toString()
Overrides:
toString in class Object

getPrincipal

public Object getPrincipal()
Specified by:
getPrincipal in interface org.apache.shiro.authc.AuthenticationToken
Returns:
the granted oauth access token

getCredentials

public Object getCredentials()
Specified by:
getCredentials in interface org.apache.shiro.authc.AuthenticationToken


Copyright © 2004-2011. All Rights Reserved.