|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.providers.AbstractAuthenticationToken
org.codehaus.groovy.grails.plugins.springsecurity.facebook.FacebookAuthenticationToken
public class FacebookAuthenticationToken
Authentication token with Facebook-specific extra information.
Nested Class Summary | |
---|---|
static class |
FacebookAuthenticationToken.Status
Token type. |
Constructor Summary | |
---|---|
FacebookAuthenticationToken(FacebookAuthenticationToken.Status status,
String errorMessage)
Create a failure token. |
|
FacebookAuthenticationToken(org.springframework.security.GrantedAuthority[] authorities,
long userId,
String sessionKey)
Created by the OpenIDAuthenticationProvider on successful authentication. |
|
FacebookAuthenticationToken(long userId,
String sessionKey)
Created by FacebookAuthenticationProcessingFilter from Facebook login info,
but before loading roles. |
Method Summary | |
---|---|
Object |
getCredentials()
|
String |
getErrorMessage()
Get the error message (if status is error ). |
Object |
getPrincipal()
|
String |
getSessionKey()
The login session key. |
FacebookAuthenticationToken.Status |
getStatus()
The status. |
long |
getUserId()
The Facebook UID. |
Methods inherited from class org.springframework.security.providers.AbstractAuthenticationToken |
---|
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FacebookAuthenticationToken(org.springframework.security.GrantedAuthority[] authorities, long userId, String sessionKey)
authorities
- rolesuserId
- sessionKey
- public FacebookAuthenticationToken(long userId, String sessionKey)
FacebookAuthenticationProcessingFilter
from Facebook login info,
but before loading roles.
userId
- the UIDsessionKey
- the session keypublic FacebookAuthenticationToken(FacebookAuthenticationToken.Status status, String errorMessage)
status
- a non-success tokenerrorMessage
- the error messageMethod Detail |
---|
public Object getCredentials()
Authentication.getCredentials()
public Object getPrincipal()
Authentication.getPrincipal()
public long getUserId()
public FacebookAuthenticationToken.Status getStatus()
public String getSessionKey()
public String getErrorMessage()
error
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |