Class JwtUser

java.lang.Object
ru.averkiev.greenchat_auth.models.JwtUser
All Implemented Interfaces:
Serializable, org.springframework.security.core.userdetails.UserDetails

public class JwtUser extends Object implements org.springframework.security.core.userdetails.UserDetails
Класс предназначен для работы с JWT. Он предоставляет информацию о пользователе, необходимую для создания и проверки JWT токенов, а также для аутентификации и авторизации пользователей в greenchat.
Author:
mrGreenNV
See Also:
  • Constructor Details

    • JwtUser

      public JwtUser()
  • Method Details

    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonExpired

      public boolean isAccountNonExpired()
      Specified by:
      isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonLocked

      public boolean isAccountNonLocked()
      Specified by:
      isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Specified by:
      isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails