public class SocialAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
| Constructor and Description |
|---|
SocialAuthenticationToken(Connection<?> connection,
Map<String,String> providerAccountData) |
SocialAuthenticationToken(Connection<?> connection,
Serializable details,
Map<String,String> providerAccountData,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
| Modifier and Type | Method and Description |
|---|---|
Connection<?> |
getConnection() |
Object |
getCredentials() |
Serializable |
getPrincipal() |
Map<String,String> |
getProviderAccountData() |
String |
getProviderId() |
void |
setAuthenticated(boolean isAuthenticated) |
public SocialAuthenticationToken(Connection<?> connection, Map<String,String> providerAccountData)
connection - connection dataproviderAccountData - optional extra account datapublic SocialAuthenticationToken(Connection<?> connection, Serializable details, Map<String,String> providerAccountData, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
connection - Connectiondetails - user details, typically as returned by SocialUserDetailsServiceproviderAccountData - optional extra account dataauthorities - any GrantedAuthoritys for this userpublic String getProviderId()
ServiceProvider idpublic Object getCredentials()
public Serializable getPrincipal()
public Connection<?> getConnection()
public Map<String,String> getProviderAccountData()
public void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.AuthenticationsetAuthenticated in class org.springframework.security.authentication.AbstractAuthenticationTokenIllegalArgumentException - when trying to authenticate a previously unauthenticated token