public class UserDetails
extends org.springframework.security.core.userdetails.User
Constructor and Description |
---|
UserDetails(User user,
String username) |
UserDetails(User user,
String username,
Collection<org.springframework.security.core.GrantedAuthority> grantedAuthorities) |
Modifier and Type | Method and Description |
---|---|
String |
getUserAlias()
The alias of the user
|
Long |
getUserId()
The user id of the user
|
Locale |
getUserLocale() |
void |
setUserLocale(Locale userLocale) |
public UserDetails(User user, String username)
user
- the user represented by this details, cannot be null.username
- the username that was used for logging inpublic UserDetails(User user, String username, Collection<org.springframework.security.core.GrantedAuthority> grantedAuthorities)
user
- the user represented by this details, cannot be null.username
- the username that was used for logging ingrantedAuthorities
- The authorities of the user.public String getUserAlias()
public Long getUserId()
public Locale getUserLocale()
public void setUserLocale(Locale userLocale)
userLocale
- the userLocale to setCopyright © 2019 Communote team. All rights reserved.