티스토리 뷰
Provides core user information.
Implementations are not used directly by Spring Security for security purposes. They simply store user information which is later encapsulated into Authentication objects. This allows non-security related user information (such as email addresses, telephone numbers etc) to be stored in a convenient location.
Concrete implementations must take particular care to ensure the non-null contract detailed for each method is enforced. See User for a reference implementation (which you might like to extend or use in your code).
Method Summary
Modifier and Type | Method and Description |
java.util.Collection<? extends GrantedAuthority> | getAuthorities() 계정의 권한 목록을 반환 (Returns the authorities granted to the user.) |
java.lang.String | getPassword() Returns the password used to authenticate the user. 계정의 비밀번호를 반환 |
java.lang.String | getUsername() Returns the username used to authenticate the user. 계정의 이름을 반환 |
boolean | isAccountNonExpired() Indicates whether the user's account has expired. 계정이 만료되지 않았는지 여부를 반환 |
boolean | isAccountNonLocked() Indicates whether the user is locked or unlocked. 계정이 잠기지 않았는지 여부를 반환 |
boolean | isCredentialsNonExpired() 비밀번호가 만료되지 않았는지 여부를 반환 |
boolean | isEnabled() Indicates whether the user is enabled or disabled. 유효한 계정인지 여부를 반환 |
댓글