public class SocialUser extends org.springframework.security.core.userdetails.User implements SocialUserDetails
User.getUsername()
as SocialUserDetails.getUserId()
for SocialUserDetailsConstructor and Description |
---|
SocialUser(String username,
String password,
boolean enabled,
boolean accountNonExpired,
boolean credentialsNonExpired,
boolean accountNonLocked,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
SocialUser(String username,
String password,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
Modifier and Type | Method and Description |
---|---|
String |
getUserId()
The user's identity at the provider.
|
equals, eraseCredentials, getAuthorities, getPassword, getUsername, hashCode, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, toString
public SocialUser(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public SocialUser(String username, String password, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public String getUserId()
SocialUserDetails
UserDetails.getUsername()
if users are identified by usernamegetUserId
in interface SocialUserDetails