@Entity public class User extends Object implements org.springframework.security.core.userdetails.UserDetails, Serializable
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
static User |
create()
Creates the.
|
User |
firstname(String firstname)
Firstname.
|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Gets the authorities.
|
String |
getUsername()
Gets the username.
|
boolean |
isAccountNonExpired()
Checks if is account non expired.
|
boolean |
isAccountNonLocked()
Checks if is account non locked.
|
boolean |
isCredentialsNonExpired()
Checks if is credentials non expired.
|
boolean |
isEnabled()
Checks if is enabled.
|
User |
lastname(String lastname)
Lastname.
|
User |
username(String username)
Username.
|
public static User create()
public User username(String username)
username - the usernamepublic User firstname(String firstname)
firstname - the firstnamepublic User lastname(String lastname)
lastname - the lastnamepublic Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailsCopyright © 2023 Smart-Cloud. All rights reserved.