|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper<T>
public class UserDetailsByNameServiceWrapper<T extends Authentication>
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(T 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 InitializingBeanExceptionInitializingBean.afterPropertiesSet()
public UserDetails loadUserDetails(T authentication)
throws UsernameNotFoundException
loadUserDetails in interface AuthenticationUserDetailsService<T extends Authentication>authentication - The pre-authenticated authentication token
UsernameNotFoundException - if no user details can be found for the given authentication
tokenpublic 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 | ||||||||