|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionInitializingBean.afterPropertiesSet()
public UserDetails loadUserDetails(Authentication authentication)
throws UsernameNotFoundException,
org.springframework.dao.DataAccessException
loadUserDetails in interface AuthenticationUserDetailsServiceauthentication - The pre-authenticated authentication token
UsernameNotFoundException - if no user details can be found for the given authentication
token
org.springframework.dao.DataAccessExceptionpublic 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 | ||||||||