Interface UserDetails

All Known Implementing Classes:
User

public interface UserDetails
A user as the security layer needs to know one: a name, an encoded password, what it has been granted, and whether the account may be used.
  • Method Details

    • getAuthorities

      Collection<? extends GrantedAuthority> getAuthorities()
      What the user has been granted; never null.
    • getPassword

      String getPassword()
      The password as it is stored: encoded, with the {id} prefix a delegating encoder reads.
    • getUsername

      String getUsername()
    • isAccountNonExpired

      default boolean isAccountNonExpired()
    • isAccountNonLocked

      default boolean isAccountNonLocked()
    • isCredentialsNonExpired

      default boolean isCredentialsNonExpired()
    • isEnabled

      default boolean isEnabled()