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
- Connection
details
- user details, typically as returned by SocialUserDetailsService
providerAccountData
- optional extra account dataauthorities
- any GrantedAuthority
s 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.Authentication
setAuthenticated
in class org.springframework.security.authentication.AbstractAuthenticationToken
IllegalArgumentException
- when trying to authenticate a previously unauthenticated token