public class SocialAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
コンストラクターと説明 |
---|
SocialAuthenticationToken(Connection<?> connection, MapSE<StringSE, StringSE> providerAccountData) |
SocialAuthenticationToken(Connection<?> connection, SerializableSE details, MapSE<StringSE, StringSE> providerAccountData, CollectionSE<? extends org.springframework.security.core.GrantedAuthority> authorities) |
修飾子と型 | メソッドと説明 |
---|---|
Connection<?> | getConnection() |
ObjectSE | getCredentials() |
SerializableSE | getPrincipal() |
MapSE<StringSE, StringSE> | getProviderAccountData() |
StringSE | getProviderId() |
void | setAuthenticated(boolean isAuthenticated) |
public SocialAuthenticationToken(Connection<?> connection, MapSE<StringSE,StringSE> providerAccountData)
connection
- 接続データ providerAccountData
- オプションの追加アカウントデータ public SocialAuthenticationToken(Connection<?> connection, SerializableSE details, MapSE<StringSE,StringSE> providerAccountData, CollectionSE<? extends org.springframework.security.core.GrantedAuthority> authorities)
connection
- Connection
details
- 通常、SocialUserDetailsService
によって返されるユーザーの詳細 providerAccountData
- オプションの追加アカウントデータ authorities
- any GrantedAuthority
s for this userpublic StringSE getProviderId()
ServiceProvider
IDpublic ObjectSE getCredentials()
public SerializableSE getPrincipal()
public Connection<?> getConnection()
public MapSE<StringSE,StringSE> getProviderAccountData()
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentExceptionSE
org.springframework.security.core.Authentication
の setAuthenticated
org.springframework.security.authentication.AbstractAuthenticationToken
の setAuthenticated
IllegalArgumentExceptionSE
- when trying to authenticate a previously unauthenticated token