public class SocialUser extends org.springframework.security.core.userdetails.User implements SocialUserDetails
User.getUsername() as SocialUserDetails.getUserId() for SocialUserDetails| Constructor 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, toStringpublic 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()
SocialUserDetailsUserDetails.getUsername() if users are identified by usernamegetUserId in interface SocialUserDetails