Klasse User
java.lang.Object
com.spaghetticodegang.trylater.user.User
- Alle implementierten Schnittstellen:
Serializable
,org.springframework.security.core.userdetails.UserDetails
@Entity
public class User
extends Object
implements org.springframework.security.core.userdetails.UserDetails
JPA entity representing a user of the system.
Implements
UserDetails
for Spring Security integration.- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCollection
<? extends org.springframework.security.core.GrantedAuthority> Returns an empty list of authorities.Returns the unique username used by Spring Security for authentication.Returns the actual username (used for display or registration).boolean
boolean
boolean
boolean
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.springframework.security.core.userdetails.UserDetails
getPassword
-
Konstruktordetails
-
User
public User()
-
-
Methodendetails
-
getAuthorities
Returns an empty list of authorities. This application does not use roles yet.- Angegeben von:
getAuthorities
in Schnittstelleorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonExpired
public boolean isAccountNonExpired()- Angegeben von:
isAccountNonExpired
in Schnittstelleorg.springframework.security.core.userdetails.UserDetails
-
isAccountNonLocked
public boolean isAccountNonLocked()- Angegeben von:
isAccountNonLocked
in Schnittstelleorg.springframework.security.core.userdetails.UserDetails
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()- Angegeben von:
isCredentialsNonExpired
in Schnittstelleorg.springframework.security.core.userdetails.UserDetails
-
isEnabled
public boolean isEnabled()- Angegeben von:
isEnabled
in Schnittstelleorg.springframework.security.core.userdetails.UserDetails
-
getUsername
Returns the unique username used by Spring Security for authentication. In this case, it is the user's email.- Angegeben von:
getUsername
in Schnittstelleorg.springframework.security.core.userdetails.UserDetails
-
getUserName
Returns the actual username (used for display or registration). Must be declared explicitly due to method name conflict withUserDetails.getUsername()
.- Gibt zurück:
- the internal username
-