public class UserDetailsByNameServiceWrapper extends java.lang.Object implements AuthenticationUserDetailsService, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
UserDetailsByNameServiceWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Check whether all required properties have been set.
|
UserDetails |
loadUserDetails(Authentication authentication)
Get the UserDetails object from the wrapped UserDetailsService
implementation
|
void |
setUserDetailsService(UserDetailsService aUserDetailsService)
Set the wrapped UserDetailsService implementation
|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
InitializingBean.afterPropertiesSet()
public UserDetails loadUserDetails(Authentication authentication) throws UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserDetails
in interface AuthenticationUserDetailsService
authentication
- The pre-authenticated authentication tokenUsernameNotFoundException
- if no user details can be found for the given authentication
tokenorg.springframework.dao.DataAccessException
public void setUserDetailsService(UserDetailsService aUserDetailsService)
aUserDetailsService
- The wrapped UserDetailsService to set