|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.userdetails.UserDetailsByNameServiceWrapper
public class UserDetailsByNameServiceWrapper
This implementation for AuthenticationUserDetailsService wraps a regular Spring Security UserDetailsService implementation, to retrieve a UserDetails object based on the user name contained in a PreAuthenticatedAuthenticationToken.
Constructor Summary | |
---|---|
UserDetailsByNameServiceWrapper()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserDetailsByNameServiceWrapper()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
InitializingBean.afterPropertiesSet()
public UserDetails loadUserDetails(Authentication authentication) throws UsernameNotFoundException, DataAccessException
loadUserDetails
in interface AuthenticationUserDetailsService
authentication
- The pre-authenticated authentication token
UsernameNotFoundException
- if no user details can be found for the given authentication
token
DataAccessException
public void setUserDetailsService(UserDetailsService aUserDetailsService)
aUserDetailsService
- The wrapped UserDetailsService to set
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |