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 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:
      isAccountNonExpired in interface org.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:
      isAccountNonLocked in interface org.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:
      isCredentialsNonExpired in interface org.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:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails
      Returns:
      true if the account is enabled, false otherwise