Class UserDetailsImpl

java.lang.Object
com.bytedesk.core.rbac.user.UserDetailsImpl
All Implemented Interfaces:
Serializable, org.springframework.security.core.userdetails.UserDetails

public class UserDetailsImpl extends Object implements org.springframework.security.core.userdetails.UserDetails
See Also:
  • Field Details

    • id

      private Long id
    • uid

      private String uid
    • username

      private String username
    • nickname

      private String nickname
    • avatar

      private String avatar
    • mobile

      private String mobile
    • email

      private String email
    • password

      private String password
    • description

      private String description
    • enabled

      private boolean enabled
    • superUser

      private boolean superUser
    • emailVerified

      private boolean emailVerified
    • mobileVerified

      private boolean mobileVerified
    • platform

      private String platform
    • currentOrganization

      private OrganizationEntity currentOrganization
    • userOrganizationRoles

      private Set<UserOrganizationRoleEntity> userOrganizationRoles
    • authorities

      Collection<? extends org.springframework.security.core.GrantedAuthority> authorities
  • Constructor Details

  • Method Details

    • build

      public static UserDetailsImpl build(UserEntity user)
    • 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