io.buji.oauth
Class OAuthToken

java.lang.Object
  extended by io.buji.oauth.OAuthToken
All Implemented Interfaces:
Serializable, org.apache.shiro.authc.AuthenticationToken

public final class OAuthToken
extends Object
implements org.apache.shiro.authc.AuthenticationToken

This class represents a token for an OAuth authentication process (OAuth credential + user identifier after authentication).

Since:
1.0.0
Author:
Jerome Leleu
See Also:
Serialized Form

Constructor Summary
OAuthToken(org.scribe.up.credential.OAuthCredential credential)
           
 
Method Summary
 Object getCredentials()
           
 Object getPrincipal()
           
 void setUserId(String userId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthToken

public OAuthToken(org.scribe.up.credential.OAuthCredential credential)
Method Detail

setUserId

public void setUserId(String userId)

getPrincipal

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

getCredentials

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


Copyright © 2012. All Rights Reserved.