blob: 9af35f031bb64376812cd24b1f2e136f41f3a26c [file] [log] [blame]
2230111590135d72025-06-03 17:11:40 +08001package com.example.myproject.entity;
2
3import org.springframework.security.core.GrantedAuthority;
4
5import java.io.Serializable;
6import java.util.Collection;
7
8public interface UserDetails extends Serializable {
9 Collection<? extends GrantedAuthority> getAuthorities();
10
11 String getPassword();
12
13 String getUsername();
14
15 boolean isAccountNonExpired();
16
17 boolean isAccountNonLocked();
18
19 boolean isCredentialsNonExpired();
20
21 boolean isEnabled();
22}
23