Package app.YUP.model
Class InternalUser
java.lang.Object
app.YUP.model.User
app.YUP.model.InternalUser
- All Implemented Interfaces:
Serializable,org.springframework.security.core.userdetails.UserDetails
@Entity
public class InternalUser
extends User
implements org.springframework.security.core.userdetails.UserDetails
This class represents an internal user in the system.
It extends the User class and implements the UserDetails interface from Spring Security.
This class contains additional information about the user, such as the password.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the user's account is not expired.booleanReturns true if the user's account is not locked.booleanReturns true if the user's credentials are not expired.booleanReturns true if the user's account is enabled.Methods inherited from class app.YUP.model.User
getAuthoritiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.core.userdetails.UserDetails
getAuthorities, getPassword, getUsername
-
Constructor Details
-
InternalUser
public InternalUser()
-
-
Method Details
-
isAccountNonExpired
public boolean isAccountNonExpired()Returns true if the user's account is not expired. This method is overridden from the UserDetails interface.- Specified by:
isAccountNonExpiredin interfaceorg.springframework.security.core.userdetails.UserDetails- Returns:
- true if the account is not expired, false otherwise
-
isAccountNonLocked
public boolean isAccountNonLocked()Returns true if the user's account is not locked. This method is overridden from the UserDetails interface.- Specified by:
isAccountNonLockedin interfaceorg.springframework.security.core.userdetails.UserDetails- Returns:
- true if the account is not locked, false otherwise
-
isCredentialsNonExpired
public boolean isCredentialsNonExpired()Returns true if the user's credentials are not expired. This method is overridden from the UserDetails interface.- Specified by:
isCredentialsNonExpiredin interfaceorg.springframework.security.core.userdetails.UserDetails- Returns:
- true if the credentials are not expired, false otherwise
-
isEnabled
public boolean isEnabled()Returns true if the user's account is enabled. This method is overridden from the UserDetails interface.- Specified by:
isEnabledin interfaceorg.springframework.security.core.userdetails.UserDetails- Returns:
- true if the account is enabled, false otherwise
-