src.java.org.codehaus.groovy.grails.plugins.springsecurity.facebook
Class FacebookAuthenticationToken

Authentication token with Facebook-specific extra information.

author:
Burt Beckwith

Field Summary
 String _errorMessage
           
 String _sessionKey
           
 Status _status
           
 long _userId
           
 long serialVersionUID
           
 
Constructor Summary
FacebookAuthenticationToken(def authorities, long userId, String sessionKey)
            Created by the OpenIDAuthenticationProvider on successful authentication.
FacebookAuthenticationToken(long userId, String sessionKey)
           
FacebookAuthenticationToken(Status status, String errorMessage)
            Create a failure token.
 
Method Summary
Object getCredentials()
          
String getErrorMessage()
           Get the error message (if status is error).
Object getPrincipal()
          
String getSessionKey()
           The login session key.
Status getStatus()
           The status.
long getUserId()
           The Facebook UID.
 

Constructor Detail

FacebookAuthenticationToken

public FacebookAuthenticationToken(def authorities, long userId, String sessionKey)
Created by the OpenIDAuthenticationProvider on successful authentication.
param:
authorities roles
param:
userId
param:
sessionKey


FacebookAuthenticationToken

public FacebookAuthenticationToken(long userId, String sessionKey)


FacebookAuthenticationToken

public FacebookAuthenticationToken(Status status, String errorMessage)
Create a failure token.
param:
status a non-success token
param:
errorMessage the error message


Method Detail

getCredentials

public Object getCredentials()


getErrorMessage

public String getErrorMessage()
Get the error message (if status is error).
return:
the message


getPrincipal

public Object getPrincipal()


getSessionKey

public String getSessionKey()
The login session key.
return:
the key


getStatus

public Status getStatus()
The status.
return:
the status


getUserId

public long getUserId()
The Facebook UID.
return:
the uid