public interface UserDetailsService
DaoAuthenticationProvider
.
The interface requires only one read-only method, which simplifies support of new data access strategies.
Modifier and Type | Method and Description |
---|---|
UserDetails |
loadUserByUsername(String username)
Locates the user based on the username.
|
UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, org.springframework.dao.DataAccessException
UserDetails
object that comes back may have a username that is of a different case than what was
actually requested..username
- the username presented to the DaoAuthenticationProvider
null
)UsernameNotFoundException
- if the user could not be found or the user has no GrantedAuthorityorg.springframework.dao.DataAccessException
- if user could not be found for a repository-specific reasonCopyright © 2018. All rights reserved.