22301115 | 90135d7 | 2025-06-03 17:11:40 +0800 | [diff] [blame] | 1 | package com.example.myproject.entity; |
| 2 | |
| 3 | import org.springframework.security.core.GrantedAuthority; |
| 4 | |
| 5 | import java.io.Serializable; |
| 6 | import java.util.Collection; |
| 7 | |
| 8 | public 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 | |