Interface UserDetailsService
- All Known Subinterfaces:
UserDetailsManager
- All Known Implementing Classes:
InMemoryUserDetailsManager, JdbcUserDetailsManager
public interface UserDetailsService
Finds a user by the name typed at sign-in. Declare a bean of this type and a
chain with
formLogin or httpBasic authenticates against it.-
Method Summary
Modifier and TypeMethodDescriptionloadUserByUsername(String username) The user of that name; never null.
-
Method Details
-
loadUserByUsername
The user of that name; never null.
Throws
UsernameNotFoundException: when there is none, or the user has no authority at all
-