|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.core.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 an Authentication object.
Constructor Summary | |
---|---|
UserDetailsByNameServiceWrapper()
Constructs an empty wrapper for compatibility with Spring Security 2.0.x's method of using a setter. |
|
UserDetailsByNameServiceWrapper(UserDetailsService userDetailsService)
Constructs a new wrapper using the supplied UserDetailsService
as the service to delegate to. |
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()
public UserDetailsByNameServiceWrapper(UserDetailsService userDetailsService)
UserDetailsService
as the service to delegate to.
userDetailsService
- the UserDetailsService to delegate to.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |